| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ad26517 commit cdcc9d8
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,17 +12,16 @@ The position of the viewport "camera" in a 3D plot is defined by three angles: | |||
| 12 | 12 | points towards the center of the plot box volume. The angle direction is a | |
| 13 | 13 | common convention, and is shared with | |
| 14 | 14 | `PyVista <https://docs.pyvista.org/api/core/camera.html>`_ and | |
| 15 | - `MATLAB <https://www.mathworks.com/help/matlab/ref/view.html>`_ | ||
| 16 | - (though MATLAB lacks a roll angle). Note that a positive roll angle rotates the | ||
| 15 | + `MATLAB <https://www.mathworks.com/help/matlab/ref/view.html>`_. Note that a positive roll angle rotates the | ||
| 17 | 16 | viewing plane clockwise, so the 3d axes will appear to rotate | |
| 18 | 17 | counter-clockwise. | |
| 19 | 18 | ||
| 20 | 19 | .. image:: /_static/mplot3d_view_angles.png | |
| 21 | 20 | :align: center | |
| 22 | 21 | :scale: 50 | |
| 23 | 22 | ||
| 24 | - Rotating the plot using the mouse will control only the azimuth and elevation, | ||
| 25 | - but all three angles can be set programmatically:: | ||
| 23 | + Rotating the plot using the mouse will control azimuth, elevation, | ||
| 24 | + as well as roll, and all three angles can be set programmatically:: | ||
| 26 | 25 | ||
| 27 | 26 | import matplotlib.pyplot as plt | |
| 28 | 27 | ax = plt.figure().add_subplot(projection='3d') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments