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)
| 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 | /// |
no outgoing calls