8000 Bugfix: invert_xaxis and invert_yaxis now notify observers. Closes 31… · adrn/matplotlib@2f86ae7 · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit 2f86ae7

Browse files
committed
Bugfix: invert_xaxis and invert_yaxis now notify observers. Closes 3123226
svn path=/branches/v1_0_maint/; revision=8882
1 parent c2b3c1d commit 2f86ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2263,7 +2263,7 @@ def set_axis_bgcolor(self, color):
22632263
def invert_xaxis(self):
22642264
"Invert the x-axis."
22652265
left, right = self.get_xlim()
2266-
self.viewLim.intervalx = (right, left)
2266+
self.set_xlim(right, left)
22672267

22682268
def xaxis_inverted(self):
22692269
'Returns True if the x-axis is inverted.'
@@ -2471,7 +2471,7 @@ def set_xticklabels(self, labels, fontdict=None, minor=False, **kwargs):
24712471
def invert_yaxis(self):
24722472
"Invert the y-axis."
24732473
bottom, top = self.get_ylim()
2474-
self.viewLim.intervaly = (top, bottom)
2474+
self.set_ylim(top, bottom)
24752475

24762476
def yaxis_inverted(self):
24772477
'Returns True if the y-axis is inverted.'

0 commit comments

Comments
 (0)
0