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

Method set_range

src/plot.rs:567–570  ·  view source on GitHub ↗

Sets axes limits

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

Source from the content-addressed store, hash-verified

565
566 /// Sets axes limits
567 pub fn set_range(&mut self, xmin: f64, xmax: f64, ymin: f64, ymax: f64) -> &mut Self {
568 write!(&mut self.buffer, "plt.axis([{},{},{},{}])\n", xmin, xmax, ymin, ymax).unwrap();
569 self
570 }
571
572 /// Sets axes limits from vector
573 pub fn set_range_from_vec(&mut self, limits: &[f64]) -> &mut Self {

Callers 13

set_functions_workFunction · 0.45
test_inset_axes_1Function · 0.45
test_inset_axes_2Function · 0.45
test_inset_axes_3Function · 0.45
test_inset_axes_4Function · 0.45
test_inset_axes_5Function · 0.45
test_inset_axes_6Function · 0.45
test_inset_axes_7Function · 0.45
test_canvas_rectangleFunction · 0.45
test_plotFunction · 0.45

Calls

no outgoing calls

Tested by 13

set_functions_workFunction · 0.36
test_inset_axes_1Function · 0.36
test_inset_axes_2Function · 0.36
test_inset_axes_3Function · 0.36
test_inset_axes_4Function · 0.36
test_inset_axes_5Function · 0.36
test_inset_axes_6Function · 0.36
test_inset_axes_7Function · 0.36
test_canvas_rectangleFunction · 0.36
test_plotFunction · 0.36