Sets camera in 3d graph. Sets the elevation and azimuth of the axes. # Input `elevation` -- is the elevation angle in the z plane `azimuth` -- is the azimuth angle in the x,y plane | view plane | elev | azim | |------------|------|------| | XY | 90 | -90 | | XZ | 0 | -90 | | YZ | 0 | 0 | | -XY | -90 | 90 | | -XZ | 0 | 90 | | -YZ
(&mut self, elevation: f64, azimuth: f64)
| 1093 | /// |
| 1094 | /// See <https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.view_init.html> |
| 1095 | pub fn set_camera(&mut self, elevation: f64, azimuth: f64) -> &mut Self { |
| 1096 | write!( |
| 1097 | &mut self.buffer, |
| 1098 | "plt.gca().view_init(elev={},azim={})\n", |
| 1099 | elevation, azimuth |
| 1100 | ) |
| 1101 | .unwrap(); |
| 1102 | self |
| 1103 | } |
| 1104 | |
| 1105 | /// Sets option to hide (or show) frame borders |
| 1106 | pub fn set_frame_border(&mut self, left: bool, right: bool, bottom: bool, top: bool) -> &mut Self { |
no outgoing calls