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

Skip to content

Commit 9051b06

Browse files
committed
MNT: mark as not stale if not visible
If the draw is short-circuited because the tick is not visible mark it as not stale.
1 parent 3e69fa5 commit 9051b06

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/axis.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ def get_loc(self):
235235
@allow_rasterization
236236
def draw(self, renderer):
237237
if not self.get_visible():
238+
self.stale = False
238239
return
239240

240241
midPoint = mtransforms.interval_contains(self.get_view_interval(),

0 commit comments

Comments
 (0)