pub struct VisualizationData {
pub x: Vec<f64>,
pub y: Vec<f64>,
pub z: Option<Vec<Vec<f64>>>,
pub series_names: Option<Vec<String>>,
pub x_labels: Option<Vec<String>>,
pub y_labels: Option<Vec<String>>,
pub auxiliary_data: HashMap<String, Vec<f64>>,
pub auxiliary_metadata: HashMap<String, String>,
pub series: HashMap<String, Vec<f64>>,
}Expand description
Data structure for visualization
This structure contains the data needed for visualization, which can be converted to formats used by popular plotting libraries.
Fields§
§x: Vec<f64>X-axis data
y: Vec<f64>Y-axis data
z: Option<Vec<Vec<f64>>>Optional Z-axis data for heatmaps
series_names: Option<Vec<String>>Optional series names for multi-series plots
x_labels: Option<Vec<String>>Optional x-axis labels
y_labels: Option<Vec<String>>Optional y-axis labels
auxiliary_data: HashMap<String, Vec<f64>>Auxiliary data for enhanced plotting
auxiliary_metadata: HashMap<String, String>Auxiliary metadata (string key-value pairs)
series: HashMap<String, Vec<f64>>Multiple data series for complex plots
Implementations§
Source§impl VisualizationData
impl VisualizationData
Sourcepub fn add_heatmap_data(&mut self, data: Vec<Vec<f64>>)
pub fn add_heatmap_data(&mut self, data: Vec<Vec<f64>>)
Sourcepub fn add_x_labels(&mut self, labels: Vec<String>)
pub fn add_x_labels(&mut self, labels: Vec<String>)
Sourcepub fn add_y_labels(&mut self, labels: Vec<String>)
pub fn add_y_labels(&mut self, labels: Vec<String>)
Sourcepub fn add_series_names(&mut self, names: Vec<String>)
pub fn add_series_names(&mut self, names: Vec<String>)
Trait Implementations§
Source§impl Clone for VisualizationData
impl Clone for VisualizationData
Source§fn clone(&self) -> VisualizationData
fn clone(&self) -> VisualizationData
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 VisualizationData
impl Debug for VisualizationData
Auto Trait Implementations§
impl Freeze for VisualizationData
impl RefUnwindSafe for VisualizationData
impl Send for VisualizationData
impl Sync for VisualizationData
impl Unpin for VisualizationData
impl UnwindSafe for VisualizationData
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.