MCPcopy Create free account
hub / github.com/cpmech/plotpy / set_camera

Method set_camera

src/plot.rs:1095–1103  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 2

set_functions_workFunction · 0.80

Calls

no outgoing calls

Tested by 2

set_functions_workFunction · 0.64