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

Skip to content

Commit 5f03c95

Browse files
Julien LhermitteJulien L
authored andcommitted
added axes reset to normal order (+x up, +y up)
1 parent 1c0b96c commit 5f03c95

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/matplotlib/axes/_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -997,6 +997,7 @@ def cla(self):
997997
self.xaxis.set_minor_locator(minl)
998998
else:
999999
self.xaxis._set_scale('linear')
1000+
self.viewLim.intervalx = (0, 1)
10001001

10011002
if self._sharey is not None:
10021003
self.yaxis.major = self._sharey.yaxis.major
@@ -1020,6 +1021,7 @@ def cla(self):
10201021
self.yaxis.set_minor_locator(minl)
10211022
else:
10221023
self.yaxis._set_scale('linear')
1024+
self.viewLim.intervaly = (0, 1)
10231025

10241026
# update the minor locator for x and y axis based on rcParams
10251027
if (rcParams['xtick.minor.visible']):
@@ -1110,6 +1112,7 @@ def cla(self):
11101112
if self._sharey:
11111113
self.yaxis.set_visible(yaxis_visible)
11121114
self.patch.set_visible(patch_visible)
1115+
11131116
self.stale = True
11141117

11151118
@cbook.deprecated("2.1", alternative="Axes.patch")

0 commit comments

Comments
 (0)