pub struct VisualizationOptions {Show 13 fields
pub width: usize,
pub height: usize,
pub dpi: usize,
pub color_map: Option<ColorMap>,
pub show_grid: bool,
pub show_legend: bool,
pub title_font_size: Option<f64>,
pub label_font_size: Option<f64>,
pub tick_font_size: Option<f64>,
pub line_width: Option<f64>,
pub marker_size: Option<f64>,
pub show_colorbar: bool,
pub color_palette: Option<String>,
}Expand description
Options for visualization
Fields§
§width: usizeFigure width
height: usizeFigure height
dpi: usizeDPI
color_map: Option<ColorMap>Color map for heatmaps
show_grid: boolWhether to show grid
show_legend: boolWhether to show legend
title_font_size: Option<f64>Font size for title
label_font_size: Option<f64>Font size for labels
tick_font_size: Option<f64>Font size for tick labels
line_width: Option<f64>Line width for line plots
marker_size: Option<f64>Marker size for scatter plots
show_colorbar: boolWhether to show colorbar for heatmaps
color_palette: Option<String>Default color palette for multiple series
Implementations§
Source§impl VisualizationOptions
impl VisualizationOptions
Sourcepub fn with_width(self, width: usize) -> Self
pub fn with_width(self, width: usize) -> Self
Sourcepub fn with_height(self, height: usize) -> Self
pub fn with_height(self, height: usize) -> Self
Sourcepub fn with_color_map(self, colormap: ColorMap) -> Self
pub fn with_color_map(self, colormap: ColorMap) -> Self
Sourcepub fn with_legend(self, showlegend: bool) -> Self
pub fn with_legend(self, showlegend: bool) -> Self
Sourcepub fn with_font_sizes(
self,
title: Option<f64>,
label: Option<f64>,
tick: Option<f64>,
) -> Self
pub fn with_font_sizes( self, title: Option<f64>, label: Option<f64>, tick: Option<f64>, ) -> Self
Set the font sizes
§Arguments
title- The title font sizelabel- The label font sizetick- The tick font size
Sourcepub fn with_line_width(self, linewidth: f64) -> Self
pub fn with_line_width(self, linewidth: f64) -> Self
Sourcepub fn with_marker_size(self, markersize: f64) -> Self
pub fn with_marker_size(self, markersize: f64) -> Self
Sourcepub fn with_colorbar(self, showcolorbar: bool) -> Self
pub fn with_colorbar(self, showcolorbar: bool) -> Self
Sourcepub fn with_color_palette(self, colorpalette: impl Into<String>) -> Self
pub fn with_color_palette(self, colorpalette: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for VisualizationOptions
impl Clone for VisualizationOptions
Source§fn clone(&self) -> VisualizationOptions
fn clone(&self) -> VisualizationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisualizationOptions
impl Debug for VisualizationOptions
Auto Trait Implementations§
impl Freeze for VisualizationOptions
impl RefUnwindSafe for VisualizationOptions
impl Send for VisualizationOptions
impl Sync for VisualizationOptions
impl Unpin for VisualizationOptions
impl UnwindSafe for VisualizationOptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable 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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.