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

Method set_gridspec

src/plot.rs:374–382  ·  view source on GitHub ↗

Configures subplots using GridSpec # Input `grid_handle` -- an identifier for GridSpec to be used later with [Plot::set_subplot_grid] `row` -- number of rows in the grid `col` -- number of columns in the grid `options` -- (may be empty) Comma separated options. Example `"wspace=0,hspace=0.35"`. See

(&mut self, grid_handle: &str, row: usize, col: usize, options: &str)

Source from the content-addressed store, hash-verified

372 /// * `options` -- (may be empty) Comma separated options. Example `"wspace=0,hspace=0.35"`.
373 /// See <https://matplotlib.org/stable/api/_as_gen/matplotlib.gridspec.GridSpec.html>
374 pub fn set_gridspec(&mut self, grid_handle: &str, row: usize, col: usize, options: &str) -> &mut Self {
375 write!(
376 &mut self.buffer,
377 "grid_{}=plt.GridSpec({},{},{})\n",
378 grid_handle, row, col, options
379 )
380 .unwrap();
381 self
382 }
383
384 /// Sets a subplot configured via GridSpec
385 ///

Callers 3

gridspec_functions_workFunction · 0.80
test_gridspec_1Function · 0.80

Calls

no outgoing calls

Tested by 3

gridspec_functions_workFunction · 0.64
test_gridspec_1Function · 0.64