Plot

Struct Plot 

Source
pub struct Plot { /* private fields */ }

Implementations§

Source§

impl Plot

Source

pub fn add_trace(&mut self, t: Box<dyn Trace>)

Adds one Trace to self

Source

pub fn add_custom_controls(&mut self, buttons: Vec<Button>)

Define custom controls for Self

Source

pub fn timedomain_plot( plot_id: &str, title: &str, y_axis_label: &str, show_legend: bool, ) -> Self

Builds new standardized 1D Time domain plot

Source

pub fn plot_3d( plot_id: &str, title: &str, x_label: &str, y_label: &str, z_label: &str, show_legend: bool, ) -> Self

Builds new 3D plot

Source

pub fn sky_plot(plot_id: &str, title: &str, show_legend: bool) -> Self

Builds new Skyplot

Source

pub fn sky_trace<T: Default + Clone + Serialize>( name: &str, t: &Vec<Epoch>, elev: Vec<T>, azim: Vec<T>, visible: bool, ) -> Box<ScatterPolar<T, T>>

Trace for a skyplot

Source

pub fn polar_plot( plot_id: &str, title: &str, x_label: &str, y_label: &str, show_legend: bool, ) -> Self

Builds new Polar plot

Source

pub fn world_map( plot_id: &str, title: &str, map_style: MapboxStyle, center_ddeg: (f64, f64), zoom: u8, show_legend: bool, ) -> Self

Builds new World Map

Source

pub fn mapbox<T: Clone + Default + Serialize>( lat: Vec<T>, lon: Vec<T>, legend: &str, size: usize, symbol: MarkerSymbol, color: Option<NamedColor>, opacity: f64, visible: bool, ) -> Box<ScatterMapbox<T, T>>

Builds new Mapbox trace

Source

pub fn density_mapbox<T: Clone + Default + Serialize>( lat: Vec<T>, lon: Vec<T>, z: Vec<T>, legend: &str, opacity: f64, zoom: u8, visible: bool, ) -> Box<DensityMapbox<T, T, T>>

Builds new Density Mapbox trace

Source

pub fn chart_3d<T: Clone + Default + Serialize>( name: &str, mode: Mode, symbol: MarkerSymbol, t: &Vec<Epoch>, x: Vec<T>, y: Vec<T>, z: Vec<T>, ) -> Box<Scatter3D<T, T, T>>

Builds new 3D chart

Source

pub fn timedomain_chart<Y: Clone + Default + Serialize>( name: &str, mode: Mode, symbol: MarkerSymbol, t: &Vec<Epoch>, y: Vec<Y>, visible: bool, ) -> Box<Scatter<f64, Y>>

Builds new Time domain chart

Trait Implementations§

Source§

impl Render for Plot

Source§

fn render(&self) -> Markup

Renders self as a block of Markup.
Source§

fn render_to(&self, buffer: &mut String)

Appends a representation of self to the given buffer. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> ErasedDestructor for T
where T: 'static,