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

Method set_gaps

src/plot.rs:477–485  ·  view source on GitHub ↗

Sets the horizontal and vertical gap between subplots

(&mut self, horizontal: f64, vertical: f64)

Source from the content-addressed store, hash-verified

475
476 /// Sets the horizontal and vertical gap between subplots
477 pub fn set_gaps(&mut self, horizontal: f64, vertical: f64) -> &mut Self {
478 write!(
479 &mut self.buffer,
480 "plt.subplots_adjust(wspace={},hspace={})\n",
481 horizontal, vertical
482 )
483 .unwrap();
484 self
485 }
486
487 /// Sets same scale for both axes
488 pub fn set_equal_axes(&mut self, equal: bool) -> &mut Self {

Callers 5

subplot_functions_workFunction · 0.80
test_plotFunction · 0.80
test_plot_subplotsFunction · 0.80
test_plot_multiple_of_piFunction · 0.80

Calls

no outgoing calls

Tested by 5

subplot_functions_workFunction · 0.64
test_plotFunction · 0.64
test_plot_subplotsFunction · 0.64
test_plot_multiple_of_piFunction · 0.64