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

Method set_equal_axes

src/plot.rs:488–495  ·  view source on GitHub ↗

Sets same scale for both axes

(&mut self, equal: bool)

Source from the content-addressed store, hash-verified

486
487 /// Sets same scale for both axes
488 pub fn set_equal_axes(&mut self, equal: bool) -> &mut Self {
489 if equal {
490 self.buffer.push_str("set_equal_axes()\n");
491 } else {
492 self.buffer.push_str("plt.gca().axes.set_aspect('auto')\n");
493 }
494 self
495 }
496
497 /// Sets the figure size in inches
498 pub fn set_figure_size_inches(&mut self, width: f64, height: f64) -> &mut Self {

Callers 15

set_functions_workFunction · 0.80
test_surface_geometryFunction · 0.80
test_surface_cylinderFunction · 0.80
test_inset_axes_3Function · 0.80
test_slope_icon_belowFunction · 0.80
test_slope_icon_aboveFunction · 0.80
test_slope_icon_exampleFunction · 0.80
test_contour_draw_triFunction · 0.80

Calls

no outgoing calls

Tested by 15

set_functions_workFunction · 0.64
test_surface_geometryFunction · 0.64
test_surface_cylinderFunction · 0.64
test_inset_axes_3Function · 0.64
test_slope_icon_belowFunction · 0.64
test_slope_icon_aboveFunction · 0.64
test_slope_icon_exampleFunction · 0.64
test_contour_draw_triFunction · 0.64