pub struct GSPos {
pub i: Range<usize>,
pub j: Range<usize>,
pub sharex: Option<usize>,
pub sharey: Option<usize>,
}Expand description
A single subplot’s position in a gridspec.
The position is specified by two integer ranges representing a 2D slice of
the gridspec.
This type also allows for shared axes to be specified in the context of a
series of positions as a pair of integers: A given integer k refers to the
Axes object corresponding to the k-th position in the series; the first
is for the X-axis and the second is for the Y-axis.
The object
ⓘ
GSPos { i: 0..3, j: 2..3, sharex: Some(0), sharey: None }specifies a subplot covering the first three rows and second column of a grid, sharing its X-axis with the first subplot in an implied sequence and its Y-axis with no other.
Fields§
§i: Range<usize>Vertical slice.
j: Range<usize>Horizontal slice.
Index of the Axes object with which to share the X-axis.
Index of the Axes object with which to share the Y-axis.
Implementations§
Trait Implementations§
impl Eq for GSPos
impl StructuralPartialEq for GSPos
Auto Trait Implementations§
impl Freeze for GSPos
impl RefUnwindSafe for GSPos
impl Send for GSPos
impl Sync for GSPos
impl Unpin for GSPos
impl UnwindSafe for GSPos
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