pub struct Plot {
pub x_data: Vec<f64>,
pub y_data: Vec<f64>,
pub z_data: Option<Vec<Vec<f64>>>,
pub plot_type: PlotType,
pub color: Color,
pub marker: Marker,
pub marker_size: f64,
pub line_width: f64,
pub label: Option<String>,
pub alpha: f64,
}Expand description
A single plot/series of data
Fields§
§x_data: Vec<f64>§y_data: Vec<f64>§z_data: Option<Vec<Vec<f64>>>§plot_type: PlotType§color: Color§marker: Marker§marker_size: f64§line_width: f64§label: Option<String>§alpha: f64Implementations§
Source§impl Plot
impl Plot
Sourcepub fn marker_size(self, size: f64) -> Self
pub fn marker_size(self, size: f64) -> Self
Set the marker size
Sourcepub fn line_width(self, width: f64) -> Self
pub fn line_width(self, width: f64) -> Self
Set the line width
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Plot
impl RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnwindSafe for Plot
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.