pub struct Plot { /* private fields */ }
Expand description
represents a particular plot
Implementations§
Source§impl Plot
impl Plot
Sourcepub fn size(&mut self, width: u32, height: u32) -> &mut Self
pub fn size(&mut self, width: u32, height: u32) -> &mut Self
the size in pixels (width,height) of the plot area
Sourcepub fn points<T>(&self, label: &str, data: T) -> &mut Series
pub fn points<T>(&self, label: &str, data: T) -> &mut Series
create a data series with individual points.
The data is anything that converts to an iterator
of (f64,f64)
tuples. If label is the empty string,
don’t show in legend
Sourcepub fn lines<T>(&self, label: &str, data: T) -> &mut Series
pub fn lines<T>(&self, label: &str, data: T) -> &mut Series
create a data series joined with lines.
Sourcepub fn bars<T>(&self, label: &str, data: T) -> &mut Series
pub fn bars<T>(&self, label: &str, data: T) -> &mut Series
create a data series with bars (histogram).
Sourcepub fn legend_pos(&mut self, pos: Corner) -> &mut Self
pub fn legend_pos(&mut self, pos: Corner) -> &mut Self
position of legend (Corner::None to hide)
pub fn extra_symbols(&mut self) -> &mut Self
Sourcepub fn markings<'a>(&'a mut self) -> Markings<'a>
pub fn markings<'a>(&'a mut self) -> Markings<'a>
object to create markings like lines and areas
Sourcepub fn set_option(
&mut self,
key: &str,
subkey: &str,
val: JsonValue,
) -> &mut Self
pub fn set_option( &mut self, key: &str, subkey: &str, val: JsonValue, ) -> &mut Self
set any option field not exposed in this API.
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