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

Skip to content

Commit 534f201

Browse files
view_init docstring for primary view angles
1 parent ecab6de commit 534f201

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,6 +738,21 @@ def view_init(self, elev=None, azim=None, roll=None, vertical_axis="z"):
738738
739739
This can be used to rotate the axes programmatically.
740740
741+
To look normal to the primary planes, the following elevation and
742+
azimuth angles can be used. A roll angle of 0, 90, 180, or 270 deg
743+
will rotate these views while keeping the axes at right angles.
744+
745+
========== ==== ====
746+
view plane elev azim
747+
========== ==== ====
748+
XY 90 -90
749+
XZ 0 -90
750+
YZ 0 0
751+
-XY -90 90
752+
-XZ 0 90
753+
-YZ 0 180
754+
========== ==== ====
755+
741756
Parameters
742757
----------
743758
elev : float, default: None

0 commit comments

Comments
 (0)