pub struct InitGrid {
pub nrows: usize,
pub ncols: usize,
pub opts: Vec<Opt>,
}
Expand description
Initialize to a figure with a regular grid of plots.
All Axes
objects will be stored in a 2D Numpy array under the local
variable AX
, and the script will be initially focused on the upper-left
corner of the array, i.e. ax = AX[0, 0]
.
Requires DefPrelude
.
fig, AX = plt.subplots(nrows={nrows}, ncols={ncols}, **{opts})
AX = AX.reshape(({nrows}, {ncols}))
ax = AX[0, 0]
Prelude: No
JSON data: None
Fields§
§nrows: usize
Number of rows.
ncols: usize
Number of columns.
opts: Vec<Opt>
Optional keyword arguments.
Implementations§
Trait Implementations§
Source§impl Matplotlib for InitGrid
impl Matplotlib for InitGrid
Source§fn is_prelude(&self) -> bool
fn is_prelude(&self) -> bool
Return
true
if self
should be considered as a prelude item, which
are execute in the order seen but before any non-prelude items.Source§impl MatplotlibOpts for InitGrid
impl MatplotlibOpts for InitGrid
impl StructuralPartialEq for InitGrid
Auto Trait Implementations§
impl Freeze for InitGrid
impl RefUnwindSafe for InitGrid
impl Send for InitGrid
impl Sync for InitGrid
impl Unpin for InitGrid
impl UnwindSafe for InitGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more