pub enum ScenePlot {
Show 15 variants
Line {
x: Vec<f64>,
y: Vec<f64>,
color_rgba: [f32; 4],
line_width: f32,
line_style: String,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Scatter {
x: Vec<f64>,
y: Vec<f64>,
color_rgba: [f32; 4],
marker_size: f32,
marker_style: String,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Bar {Show 14 fields
labels: Vec<String>,
values: Vec<f64>,
histogram_bin_edges: Option<Vec<f64>>,
color_rgba: [f32; 4],
outline_color_rgba: Option<[f32; 4]>,
bar_width: f32,
outline_width: f32,
orientation: String,
group_index: u32,
group_count: u32,
stack_offsets: Option<Vec<f64>>,
axes_index: u32,
label: Option<String>,
visible: bool,
},
ErrorBar {Show 19 fields
x: Vec<f64>,
y: Vec<f64>,
err_low: Vec<f64>,
err_high: Vec<f64>,
x_err_low: Vec<f64>,
x_err_high: Vec<f64>,
orientation: String,
color_rgba: [f32; 4],
line_width: f32,
line_style: String,
cap_width: f32,
marker_style: Option<String>,
marker_size: Option<f32>,
marker_face_color: Option<[f32; 4]>,
marker_edge_color: Option<[f32; 4]>,
marker_filled: Option<bool>,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Stairs {
x: Vec<f64>,
y: Vec<f64>,
color_rgba: [f32; 4],
line_width: f32,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Stem {Show 14 fields
x: Vec<f64>,
y: Vec<f64>,
baseline: f64,
color_rgba: [f32; 4],
line_width: f32,
line_style: String,
baseline_color_rgba: [f32; 4],
baseline_visible: bool,
marker_color_rgba: [f32; 4],
marker_size: f32,
marker_filled: bool,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Area {
x: Vec<f64>,
y: Vec<f64>,
lower_y: Option<Vec<f64>>,
baseline: f64,
color_rgba: [f32; 4],
axes_index: u32,
label: Option<String>,
visible: bool,
},
Quiver {
x: Vec<f64>,
y: Vec<f64>,
u: Vec<f64>,
v: Vec<f64>,
color_rgba: [f32; 4],
line_width: f32,
scale: f32,
head_size: f32,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Surface {Show 14 fields
x: Vec<f64>,
y: Vec<f64>,
z: Vec<Vec<f64>>,
colormap: String,
shading_mode: String,
wireframe: bool,
alpha: f32,
flatten_z: bool,
image_mode: bool,
color_grid_rgba: Option<Vec<Vec<[f32; 4]>>>,
color_limits: Option<[f64; 2]>,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Line3 {
x: Vec<f64>,
y: Vec<f64>,
z: Vec<f64>,
color_rgba: [f32; 4],
line_width: f32,
line_style: String,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Scatter3 {
points: Vec<[f32; 3]>,
colors_rgba: Vec<[f32; 4]>,
point_size: f32,
point_sizes: Option<Vec<f32>>,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Contour {
vertices: Vec<SerializedVertex>,
bounds_min: [f32; 3],
bounds_max: [f32; 3],
base_z: f32,
line_width: f32,
axes_index: u32,
label: Option<String>,
visible: bool,
},
ContourFill {
vertices: Vec<SerializedVertex>,
bounds_min: [f32; 3],
bounds_max: [f32; 3],
axes_index: u32,
label: Option<String>,
visible: bool,
},
Pie {
values: Vec<f64>,
colors_rgba: Vec<[f32; 4]>,
slice_labels: Vec<String>,
label_format: Option<String>,
explode: Vec<bool>,
axes_index: u32,
label: Option<String>,
visible: bool,
},
Unsupported {
plot_kind: PlotKind,
axes_index: u32,
label: Option<String>,
visible: bool,
},
}Variants§
Line
Fields
Scatter
Fields
Bar
Fields
ErrorBar
Fields
Stairs
Fields
Stem
Fields
Area
Fields
Quiver
Fields
Surface
Fields
Line3
Fields
Scatter3
Fields
Contour
Fields
§
vertices: Vec<SerializedVertex>ContourFill
Fields
§
vertices: Vec<SerializedVertex>Pie
Fields
Unsupported
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ScenePlot
impl<'de> Deserialize<'de> for ScenePlot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScenePlot
impl RefUnwindSafe for ScenePlot
impl Send for ScenePlot
impl Sync for ScenePlot
impl Unpin for ScenePlot
impl UnsafeUnpin for ScenePlot
impl UnwindSafe for ScenePlot
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 more