pub struct PlotOptions {
pub width: usize,
pub height: usize,
pub title: Option<String>,
pub x_label: Option<String>,
pub y_label: Option<String>,
pub color: bool,
pub scatter: bool,
pub x_range: Option<(f64, f64)>,
pub y_range: Option<(f64, f64)>,
}Expand description
Layout options for render_terminal_plot.
Fields§
§width: usizePlot area width in character cells (at least 4).
height: usizePlot area height in character cells (at least 2).
title: Option<String>§x_label: Option<String>§y_label: Option<String>§color: boolColour each series with ANSI escape codes.
scatter: boolDraw only the sample points instead of connecting them.
x_range: Option<(f64, f64)>Fixed x-axis range (otherwise fitted to the data).
y_range: Option<(f64, f64)>Fixed y-axis range (otherwise fitted to the data).
Trait Implementations§
Source§impl Clone for PlotOptions
impl Clone for PlotOptions
Source§impl Debug for PlotOptions
impl Debug for PlotOptions
Auto Trait Implementations§
impl Freeze for PlotOptions
impl RefUnwindSafe for PlotOptions
impl Send for PlotOptions
impl Sync for PlotOptions
impl Unpin for PlotOptions
impl UnsafeUnpin for PlotOptions
impl UnwindSafe for PlotOptions
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