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

Method set_subplot

src/plot.rs:360–363  ·  view source on GitHub ↗

Configures subplots # Input `row` -- number of rows in the subplot grid `col` -- number of columns in the subplot grid `index` -- activate current subplot; **indices start at one** (1-based)

(&mut self, row: usize, col: usize, index: usize)

Source from the content-addressed store, hash-verified

358 /// * `col` -- number of columns in the subplot grid
359 /// * `index` -- activate current subplot; **indices start at one** (1-based)
360 pub fn set_subplot(&mut self, row: usize, col: usize, index: usize) -> &mut Self {
361 write!(&mut self.buffer, "\nplt.subplot({},{},{})\n", row, col, index).unwrap();
362 self
363 }
364
365 /// Configures subplots using GridSpec
366 ///

Callers 12

show_errors_worksFunction · 0.80
subplot_functions_workFunction · 0.80
test_inset_axes_2Function · 0.80
test_slope_icon_exampleFunction · 0.80
test_subplotFunction · 0.80
test_boxplot_3Function · 0.80
test_boxplot_4Function · 0.80
test_plotFunction · 0.80
test_plot_subplotsFunction · 0.80
test_plot_logFunction · 0.80
test_plot_multiple_of_piFunction · 0.80

Calls

no outgoing calls

Tested by 12

show_errors_worksFunction · 0.64
subplot_functions_workFunction · 0.64
test_inset_axes_2Function · 0.64
test_slope_icon_exampleFunction · 0.64
test_subplotFunction · 0.64
test_boxplot_3Function · 0.64
test_boxplot_4Function · 0.64
test_plotFunction · 0.64
test_plot_subplotsFunction · 0.64
test_plot_logFunction · 0.64
test_plot_multiple_of_piFunction · 0.64