pub enum LegendPosition {
Show 25 variants
Auto,
InsideTopLeft,
InsideTop,
InsideTopRight,
InsideRightTop,
InsideRight,
InsideRightBottom,
InsideBottomLeft,
InsideBottom,
InsideBottomRight,
InsideLeftTop,
InsideLeft,
InsideLeftBottom,
OutsideRightTop,
OutsideRight,
OutsideRightBottom,
OutsideTopLeft,
OutsideTop,
OutsideTopRight,
OutsideBottomLeft,
OutsideBottom,
OutsideBottomRight,
OutsideLeftTop,
OutsideLeft,
OutsideLeftBottom,
}Expand description
Requested legend placement.
Inside positions are limited to plot edges so layout can reserve data space without placing the legend in the middle of the main graphic.
Variants§
Auto
Use the plot-type default placement.
InsideTopLeft
Inside the axes at the top-left edge.
InsideTop
Inside the axes at the top edge.
InsideTopRight
Inside the axes at the top-right edge.
InsideRightTop
Inside the axes at the right-top edge.
InsideRight
Inside the axes at the right edge.
InsideRightBottom
Inside the axes at the right-bottom edge.
InsideBottomLeft
Inside the axes at the bottom-left edge.
InsideBottom
Inside the axes at the bottom edge.
InsideBottomRight
Inside the axes at the bottom-right edge.
InsideLeftTop
Inside the axes at the left-top edge.
InsideLeft
Inside the axes at the left edge.
InsideLeftBottom
Inside the axes at the left-bottom edge.
OutsideRightTop
Outside the axes in right-side whitespace, aligned to panel top.
OutsideRight
Outside the axes in right-side whitespace, aligned to panel center.
OutsideRightBottom
Outside the axes in right-side whitespace, aligned to panel bottom.
OutsideTopLeft
Outside the axes in top whitespace, aligned to panel left.
OutsideTop
Outside the axes in top whitespace, aligned to panel center.
OutsideTopRight
Outside the axes in top whitespace, aligned to panel right.
OutsideBottomLeft
Outside the axes in bottom whitespace, aligned to panel left.
OutsideBottom
Outside the axes in bottom whitespace, aligned to panel center.
OutsideBottomRight
Outside the axes in bottom whitespace, aligned to panel right.
OutsideLeftTop
Outside the axes in left-side whitespace, aligned to panel top.
OutsideLeft
Outside the axes in left-side whitespace, aligned to panel center.
OutsideLeftBottom
Outside the axes in left-side whitespace, aligned to panel bottom.
Trait Implementations§
Source§impl Clone for LegendPosition
impl Clone for LegendPosition
Source§fn clone(&self) -> LegendPosition
fn clone(&self) -> LegendPosition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LegendPosition
Source§impl Debug for LegendPosition
impl Debug for LegendPosition
Source§impl Default for LegendPosition
impl Default for LegendPosition
Source§fn default() -> LegendPosition
fn default() -> LegendPosition
impl Eq for LegendPosition
Source§impl PartialEq for LegendPosition
impl PartialEq for LegendPosition
impl StructuralPartialEq for LegendPosition
Auto Trait Implementations§
impl Forget for LegendPosition
impl Freeze for LegendPosition
impl Move for LegendPosition
impl RefUnwindSafe for LegendPosition
impl Send for LegendPosition
impl Sync for LegendPosition
impl Unpin for LegendPosition
impl UnsafeUnpin for LegendPosition
impl UnwindSafe for LegendPosition
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.