pub struct PlotData {
pub spec: PlotSpec,
pub points: Vec<(f32, f32)>,
pub x_range: (f32, f32),
pub y_range: (f32, f32),
pub warnings: Vec<String>,
}Expand description
Prepared data for rendering a plot (frontend-agnostic).
This intermediate representation separates data extraction from rendering, allowing different frontends (TUI, GUI) to use the same data preparation logic.
Fields§
§spec: PlotSpecThe original plot specification.
points: Vec<(f32, f32)>Data points as (x, y) pairs.
x_range: (f32, f32)X-axis range (min, max).
y_range: (f32, f32)Y-axis range (min, max).
warnings: Vec<String>Warnings about data quality (e.g., skipped non-numeric cells).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlotData
impl RefUnwindSafe for PlotData
impl Send for PlotData
impl Sync for PlotData
impl Unpin for PlotData
impl UnwindSafe for PlotData
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