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

Method set_range_3d

src/plot.rs:554–564  ·  view source on GitHub ↗

Sets axes limits

(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64)

Source from the content-addressed store, hash-verified

552
553 /// Sets axes limits
554 pub fn set_range_3d(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64, zmin: f64, zmax: f64) -> &mut Self {
555 write!(
556 &mut self.buffer,
557 "plt.gca().set_xlim({},{})\n\
558 plt.gca().set_ylim({},{})\n\
559 plt.gca().set_zlim({},{})\n",
560 xmin, xmax, ymin, ymax, zmin, zmax,
561 )
562 .unwrap();
563 self
564 }
565
566 /// Sets axes limits
567 pub fn set_range(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64) -> &mut Self {

Callers 4

set_functions_workFunction · 0.80
test_surface_cylinderFunction · 0.80
test_curve_3dFunction · 0.80
test_plot_3dFunction · 0.80

Calls

no outgoing calls

Tested by 4

set_functions_workFunction · 0.64
test_surface_cylinderFunction · 0.64
test_curve_3dFunction · 0.64
test_plot_3dFunction · 0.64