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

Skip to content

Commit bb02f58

Browse files
author
James Evans
committed
Changed what appeared to be a typo where x-axis values were being converted using the y-axis unit converters.
svn path=/trunk/matplotlib/; revision=3546
1 parent 0f8da9a commit bb02f58

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ def set_xlim(self, xmin=None, xmax=None, emit=True, **kwargs):
15071507
if xmin is not None:
15081508
xmin = self.convert_xunits(xmin)
15091509
if xmax is not None:
1510-
xmax = self.convert_yunits(xmax)
1510+
xmax = self.convert_xunits(xmax)
15111511

15121512
old_xmin,old_xmax = self.get_xlim()
15131513
if xmin is None: xmin = old_xmin

0 commit comments

Comments
 (0)