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

Skip to content

Commit 83aafff

Browse files
committed
ENH : add stale flag to mplot3d.Axis
1 parent 2970d30 commit 83aafff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mpl_toolkits/mplot3d/axis3d.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,23 @@ def set_pane_pos(self, xys):
141141
xys = np.asarray(xys)
142142
xys = xys[:,:2]
143143
self.pane.xy = xys
144+
self.stale = True
144145

145146
def set_pane_color(self, color):
146147
'''Set pane color to a RGBA tuple'''
147148
self._axinfo['color'] = color
148149
self.pane.set_edgecolor(color)
149150
self.pane.set_facecolor(color)
150151
self.pane.set_alpha(color[-1])
152+
self.stale = True
151153

152154
def set_rotate_label(self, val):
153155
'''
154156
Whether to rotate the axis label: True, False or None.
155157
If set to None the label will be rotated if longer than 4 chars.
156158
'''
157159
self._rotate_label = val
160+
self.stale = True
158161

159162
def get_rotate_label(self, text):
160163
if self._rotate_label is not None:
@@ -416,6 +419,7 @@ def draw(self, renderer):
416419
tick.draw(renderer)
417420

418421
renderer.close_group('axis3d')
422+
self.stale = False
419423

420424
def get_view_interval(self):
421425
"""return the Interval instance for this 3d axis view limits"""

0 commit comments

Comments
 (0)