pub struct PlotTheme {
pub background: Rgba,
pub plot_background: Rgba,
pub text: Rgba,
pub axis: Rgba,
pub grid: Rgba,
pub palette: Vec<Rgba>,
}Expand description
Theme colors for a headless chart.
Fields§
§background: RgbaCanvas fill.
plot_background: RgbaPlot area fill inside the axes.
text: RgbaTitle and label color.
axis: RgbaAxis and frame color.
grid: RgbaGrid color.
palette: Vec<Rgba>Series palette, used when a series has no color.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlotTheme
impl<'de> Deserialize<'de> for PlotTheme
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
impl StructuralPartialEq for PlotTheme
Auto Trait Implementations§
impl Forget for PlotTheme
impl Freeze for PlotTheme
impl Move for PlotTheme
impl RefUnwindSafe for PlotTheme
impl Send for PlotThemewhere
RawVecInner: Send,
impl Sync for PlotThemewhere
RawVecInner: Sync,
impl Unpin for PlotTheme
impl UnsafeUnpin for PlotTheme
impl UnwindSafe for PlotThemewhere
RawVecInner: UnwindSafe,
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