pub struct InitGridSpec {
pub gridspec_kw: Vec<Opt>,
pub positions: Vec<GSPos>,
}
Expand description
Initialize a figure with Matplotlib’s gridspec
.
Keyword arguments are passed to plt.Figure.add_gridspec
, and each
subplot’s position in the gridspec is specified using a GSPos
. All
Axes
objects will be stored in a 1D Numpy array under the local variable
AX
, and the script will be initially focused to the subplot corresponding
to the first GSPos
encountered, i.e. ax = AX[0]
.
Requires DefPrelude
.
fig = plt.figure()
gs = fig.add_gridspec(**{opts})
AX = np.array([
# sub-plots generated from {positions}...
])
# share axes between sub-plots...
ax = AX[0]
Prelude: No
JSON data: None
Fields§
§gridspec_kw: Vec<Opt>
Keyword arguments.
positions: Vec<GSPos>
Sub-plot positions and axis sharing.
Implementations§
Source§impl InitGridSpec
impl InitGridSpec
Trait Implementations§
Source§impl Clone for InitGridSpec
impl Clone for InitGridSpec
Source§fn clone(&self) -> InitGridSpec
fn clone(&self) -> InitGridSpec
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InitGridSpec
impl Debug for InitGridSpec
Source§impl Matplotlib for InitGridSpec
impl Matplotlib for InitGridSpec
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 InitGridSpec
impl MatplotlibOpts for InitGridSpec
Source§impl PartialEq for InitGridSpec
impl PartialEq for InitGridSpec
impl StructuralPartialEq for InitGridSpec
Auto Trait Implementations§
impl Freeze for InitGridSpec
impl RefUnwindSafe for InitGridSpec
impl Send for InitGridSpec
impl Sync for InitGridSpec
impl Unpin for InitGridSpec
impl UnwindSafe for InitGridSpec
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