pub struct Plot3DConfig {Show 32 fields
pub title: Option<String>,
pub x: AxisConfig,
pub y: AxisConfig,
pub z: AxisConfig,
pub title_size: f32,
pub title_color: Option<Color32>,
pub title_align: TitleAlign,
pub label_size: f32,
pub tick_size: f32,
pub legend_size: f32,
pub frame_width: f32,
pub grid_width: f32,
pub grid_major_opacity: f32,
pub grid_minor_opacity: f32,
pub tick_length: f32,
pub line_scale: f32,
pub marker_scale: f32,
pub legend: LegendPosition,
pub legend_frame: bool,
pub toolbar: bool,
pub hover_guides: bool,
pub hover_popup: bool,
pub legend_hover: LegendHoverConfig,
pub direction: DirectionArrowConfig,
pub surface: Surface3DConfig,
pub projection: Projection,
pub yaw: f32,
pub pitch: f32,
pub fov: f32,
pub colors: PlotColors,
pub series: Vec<Series3DStyle>,
pub renderer: Renderer,
}Expand description
The complete appearance of a 3D plot.
Fields§
§title: Option<String>Title above the frame.
x: AxisConfigThe horizontal x axis.
y: AxisConfigThe horizontal y axis (depth).
z: AxisConfigThe vertical z axis.
title_size: f32Title size in points.
title_color: Option<Color32>Title color; PlotColors::text (or the theme) when None.
title_align: TitleAlignTitle alignment over the frame.
label_size: f32Axis title size in points.
tick_size: f32Tick label size in points.
legend_size: f32Legend text size in points.
frame_width: f32Frame line width in points.
grid_width: f32Grid line width in points.
grid_major_opacity: f32Opacity of major grid lines, 0–1.
grid_minor_opacity: f32Opacity of minor grid lines, 0–1.
tick_length: f32Length of tick marks.
line_scale: f32Multiplies every line width.
marker_scale: f32Multiplies every marker size.
legend: LegendPositionLegend corner or hidden.
legend_frame: boolDraw the legend’s background box.
toolbar: boolShow the tool buttons.
hover_guides: boolDashed drop line from the hovered point to the floor.
hover_popup: boolThe hover popup.
legend_hover: LegendHoverConfigThe animation played while a legend row is hovered.
direction: DirectionArrowConfigThe arrow beside the newest point of a line.
surface: Surface3DConfigSurface fill and wireframe.
projection: ProjectionPerspective or orthographic.
yaw: f32Initial rotation around the vertical axis, in radians.
pitch: f32Initial elevation, in radians.
fov: f32Vertical field of view in degrees.
colors: PlotColorsTheme overrides.
series: Vec<Series3DStyle>Per-series overrides.
renderer: RendererCPU or GPU filled surfaces.
Implementations§
Source§impl Plot3DConfig
impl Plot3DConfig
Sourcepub fn series_style(&self, name: &str) -> Option<&Series3DStyle>
pub fn series_style(&self, name: &str) -> Option<&Series3DStyle>
The overrides for name, if any.
Sourcepub fn series_style_mut(&mut self, name: &str) -> &mut Series3DStyle
pub fn series_style_mut(&mut self, name: &str) -> &mut Series3DStyle
The overrides for name, created empty when missing.
Trait Implementations§
Source§impl Clone for Plot3DConfig
impl Clone for Plot3DConfig
Source§impl Debug for Plot3DConfig
impl Debug for Plot3DConfig
Source§impl Default for Plot3DConfig
impl Default for Plot3DConfig
Source§impl<'de> Deserialize<'de> for Plot3DConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Plot3DConfig
serde only.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>,
Source§impl PartialEq for Plot3DConfig
impl PartialEq for Plot3DConfig
Source§impl Serialize for Plot3DConfig
Available on crate feature serde only.
impl Serialize for Plot3DConfig
serde only.impl StructuralPartialEq for Plot3DConfig
Auto Trait Implementations§
impl Forget for Plot3DConfig
impl Freeze for Plot3DConfigwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Series3DStyle>: Freeze,
impl Move for Plot3DConfig
impl RefUnwindSafe for Plot3DConfig
impl Send for Plot3DConfigwhere
RawVecInner: Send,
impl Sync for Plot3DConfigwhere
RawVecInner: Sync,
impl Unpin for Plot3DConfig
impl UnsafeUnpin for Plot3DConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Series3DStyle>: UnsafeUnpin,
impl UnwindSafe for Plot3DConfigwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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> ⓘ
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