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

Skip to content

Share elevation and azimut with other axes #17442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/mpl_toolkits/mplot3d/axes3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,16 @@ def _on_move(self, event):
self.get_proj()
self.stale = True
self.figure.canvas.draw_idle()
# Call all of the other z-axes that are shared with this one
for other in self._shared_z_axes.get_siblings(self):
if other is not self:
# respect initial values to enable (e.g. stereoscopic) offsets
other.elev = self.elev - self.initial_elev + other.initial_elev
other.azim = self.azim - self.initial_azim + other.initial_azim
if (other.figure != self.figure and
other.figure.canvas is not None):
other.figure.canvas.draw_idle()
self.figure.canvas.draw_idle()

# elif self.button_pressed == 2:
# pan view
Expand Down