Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c6f9709

Browse files
committed
fixed an axis bug
svn path=/trunk/matplotlib/; revision=2973
1 parent d12be91 commit c6f9709

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -858,8 +858,14 @@ def axis(self, *v, **kwargs):
858858

859859
try: v[0]
860860
except IndexError:
861-
xmin, xmax = self.set_xlim(**kwargs)
862-
ymin, ymax = self.set_ylim(**kwargs)
861+
emit = kwargs.get('emit', False)
862+
xmin = kwargs.get('xmin', None)
863+
xmax = kwargs.get('xmax', None)
864+
865+
xmin, xmax = self.set_xlim(xmin, xmax, emit)
866+
ymin = kwargs.get('ymin', None)
867+
ymax = kwargs.get('ymax', None)
868+
ymin, ymax = self.set_ylim(ymin, ymax, emit)
863869
return xmin, xmax, ymin, ymax
864870

865871
v = v[0]

0 commit comments

Comments
 (0)