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

Skip to content

Commit a16ff16

Browse files
authored
Merge pull request #28311 from MischaMegens2/orientation-indication
Update 3D orientation indication right away
2 parents 9a9fce5 + c15ce3d commit a16ff16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,6 +1348,8 @@ def _button_press(self, event):
13481348
toolbar = self.figure.canvas.toolbar
13491349
if toolbar and toolbar._nav_stack() is None:
13501350
toolbar.push_current()
1351+
if toolbar:
1352+
toolbar.set_message(toolbar._mouse_event_to_message(event))
13511353

13521354
def _button_release(self, event):
13531355
self.button_pressed = None
@@ -1356,6 +1358,8 @@ def _button_release(self, event):
13561358
# push_current, so check the navigation mode so we don't call it twice
13571359
if toolbar and self.get_navigate_mode() is None:
13581360
toolbar.push_current()
1361+
if toolbar:
1362+
toolbar.set_message(toolbar._mouse_event_to_message(event))
13591363

13601364
def _get_view(self):
13611365
# docstring inherited

0 commit comments

Comments
 (0)