Share the view angles with *other*. This is equivalent to passing ``shareview=other`` when constructing the Axes, and cannot be used if the view angles are already being shared with another Axes. Note that it is not possible to unshare axes.
(self, other)
| 1537 | self.zaxis._scale = other.zaxis._scale |
| 1538 | |
| 1539 | def shareview(self, other): |
| 1540 | """ |
| 1541 | Share the view angles with *other*. |
| 1542 | |
| 1543 | This is equivalent to passing ``shareview=other`` when constructing the |
| 1544 | Axes, and cannot be used if the view angles are already being shared |
| 1545 | with another Axes. Note that it is not possible to unshare axes. |
| 1546 | """ |
| 1547 | _api.check_isinstance(Axes3D, other=other) |
| 1548 | if self._shareview is not None and other is not self._shareview: |
| 1549 | raise ValueError("view angles are already shared") |
| 1550 | self._shared_axes["view"].join(self, other) |
| 1551 | self._shareview = other |
| 1552 | vertical_axis = self._axis_names[other._vertical_axis] |
| 1553 | self.view_init(elev=other.elev, azim=other.azim, roll=other.roll, |
| 1554 | vertical_axis=vertical_axis, share=True) |
| 1555 | |
| 1556 | def clear(self): |
| 1557 | # docstring inherited. |