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

Method set_xrange

src/plot.rs:620–623  ·  view source on GitHub ↗

Sets x-range (i.e. limits)

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

Source from the content-addressed store, hash-verified

618
619 /// Sets x-range (i.e. limits)
620 pub fn set_xrange(&mut self, xmin: f64, xmax: f64) -> &mut Self {
621 write!(&mut self.buffer, "plt.gca().set_xlim([{},{}])\n", xmin, xmax).unwrap();
622 self
623 }
624
625 /// Sets y-range (i.e. limits)
626 pub fn set_yrange(&mut self, ymin: f64, ymax: f64) -> &mut Self {

Callers 3

set_functions_workFunction · 0.80
test_plotFunction · 0.80
test_plot_3dFunction · 0.80

Calls

no outgoing calls

Tested by 3

set_functions_workFunction · 0.64
test_plotFunction · 0.64
test_plot_3dFunction · 0.64