pub struct PlotUtils;Expand description
Plotting utilities for ML visualization
Implementations§
Source§impl PlotUtils
impl PlotUtils
Sourcepub fn create_color_palette(num_colors: usize) -> Vec<Color>
pub fn create_color_palette(num_colors: usize) -> Vec<Color>
Create color palette for categorical data
Sourcepub fn create_axis_config(
label: &str,
min_val: Option<f64>,
max_val: Option<f64>,
tick_count: Option<usize>,
) -> AxisConfig
pub fn create_axis_config( label: &str, min_val: Option<f64>, max_val: Option<f64>, tick_count: Option<usize>, ) -> AxisConfig
Create axis configuration for plots
Sourcepub fn to_json(plot_data: &PlotData) -> UtilsResult<String>
pub fn to_json(plot_data: &PlotData) -> UtilsResult<String>
Format data for JSON export
Sourcepub fn to_csv(scatter_data: &ScatterPlotData) -> UtilsResult<String>
pub fn to_csv(scatter_data: &ScatterPlotData) -> UtilsResult<String>
Format data for CSV export
Sourcepub fn create_layout(
title: &str,
x_axis: AxisConfig,
y_axis: AxisConfig,
width: Option<u32>,
height: Option<u32>,
) -> PlotLayout
pub fn create_layout( title: &str, x_axis: AxisConfig, y_axis: AxisConfig, width: Option<u32>, height: Option<u32>, ) -> PlotLayout
Create plot layout configuration
Sourcepub fn generate_plot_summary(plot_data: &PlotData) -> PlotSummary
pub fn generate_plot_summary(plot_data: &PlotData) -> PlotSummary
Generate plot summary statistics
Auto Trait Implementations§
impl Freeze for PlotUtils
impl RefUnwindSafe for PlotUtils
impl Send for PlotUtils
impl Sync for PlotUtils
impl Unpin for PlotUtils
impl UnwindSafe for PlotUtils
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> 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