pub struct Plot { /* private fields */ }Implementations§
Source§impl Plot
impl Plot
Sourcepub fn add_custom_controls(&mut self, buttons: Vec<Button>)
pub fn add_custom_controls(&mut self, buttons: Vec<Button>)
Define custom controls for Self
Sourcepub fn timedomain_plot(
plot_id: &str,
title: &str,
y_axis_label: &str,
show_legend: bool,
) -> Self
pub fn timedomain_plot( plot_id: &str, title: &str, y_axis_label: &str, show_legend: bool, ) -> Self
Builds new standardized 1D Time domain plot
Sourcepub fn plot_3d(
plot_id: &str,
title: &str,
x_label: &str,
y_label: &str,
z_label: &str,
show_legend: bool,
) -> Self
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
Sourcepub fn sky_trace<T: Default + Clone + Serialize>(
name: &str,
t: &Vec<Epoch>,
elev: Vec<T>,
azim: Vec<T>,
visible: bool,
) -> Box<ScatterPolar<T, T>>
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
Sourcepub fn polar_plot(
plot_id: &str,
title: &str,
x_label: &str,
y_label: &str,
show_legend: bool,
) -> Self
pub fn polar_plot( plot_id: &str, title: &str, x_label: &str, y_label: &str, show_legend: bool, ) -> Self
Builds new Polar plot
Sourcepub fn world_map(
plot_id: &str,
title: &str,
map_style: MapboxStyle,
center_ddeg: (f64, f64),
zoom: u8,
show_legend: bool,
) -> Self
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
Sourcepub 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>>
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
Sourcepub 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>>
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.