pub struct PlotColors {
pub background: Option<Color32>,
pub canvas: Option<Color32>,
pub frame: Option<Color32>,
pub grid: Option<Color32>,
pub text: Option<Color32>,
pub tick_text: Option<Color32>,
pub selection: Option<Color32>,
}Expand description
Optional color overrides; None follows the theme.
Fields§
§background: Option<Color32>Fill of the data area.
canvas: Option<Color32>Fill around the data area (transparent on screen by default).
frame: Option<Color32>The frame and tick marks.
grid: Option<Color32>Grid lines (before the major/minor opacity).
text: Option<Color32>Title and axis titles.
tick_text: Option<Color32>Tick labels.
selection: Option<Color32>Selection fill and outline.
Trait Implementations§
Source§impl Clone for PlotColors
impl Clone for PlotColors
impl Copy for PlotColors
Source§impl Debug for PlotColors
impl Debug for PlotColors
Source§impl Default for PlotColors
impl Default for PlotColors
Source§impl<'de> Deserialize<'de> for PlotColors
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PlotColors
Available on crate feature
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlotColors
impl PartialEq for PlotColors
Source§impl Serialize for PlotColors
Available on crate feature serde only.
impl Serialize for PlotColors
Available on crate feature
serde only.impl StructuralPartialEq for PlotColors
Auto Trait Implementations§
impl Forget for PlotColors
impl Freeze for PlotColors
impl Move for PlotColors
impl RefUnwindSafe for PlotColors
impl Send for PlotColors
impl Sync for PlotColors
impl Unpin for PlotColors
impl UnsafeUnpin for PlotColors
impl UnwindSafe for PlotColors
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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