pub struct KeyOverride {
pub color: Option<(u8, u8, u8)>,
pub fill: Option<(u8, u8, u8)>,
pub shape: Option<PointShape>,
pub linetype: Option<Linetype>,
pub size: Option<f64>,
pub alpha: Option<f64>,
pub linewidth: Option<f64>,
}Expand description
Fixed values a legend’s keys are drawn with, whatever the data maps
(ggplot2’s override.aes, #409) — e.g. opaque, larger keys for a
scatter plot drawn with small, translucent points. None keeps the key’s
own value.
Fields§
§color: Option<(u8, u8, u8)>§fill: Option<(u8, u8, u8)>§shape: Option<PointShape>§linetype: Option<Linetype>§size: Option<f64>§alpha: Option<f64>§linewidth: Option<f64>Implementations§
Source§impl KeyOverride
impl KeyOverride
pub fn new() -> Self
pub fn color(self, c: (u8, u8, u8)) -> Self
pub fn fill(self, c: (u8, u8, u8)) -> Self
pub fn shape(self, s: PointShape) -> Self
pub fn linetype(self, l: Linetype) -> Self
pub fn size(self, v: f64) -> Self
pub fn alpha(self, v: f64) -> Self
pub fn linewidth(self, v: f64) -> Self
Trait Implementations§
Source§impl Clone for KeyOverride
impl Clone for KeyOverride
Source§impl Debug for KeyOverride
impl Debug for KeyOverride
Source§impl Default for KeyOverride
impl Default for KeyOverride
Source§impl PartialEq for KeyOverride
impl PartialEq for KeyOverride
impl StructuralPartialEq for KeyOverride
Auto Trait Implementations§
impl Freeze for KeyOverride
impl RefUnwindSafe for KeyOverride
impl Send for KeyOverride
impl Sync for KeyOverride
impl Unpin for KeyOverride
impl UnsafeUnpin for KeyOverride
impl UnwindSafe for KeyOverride
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more