Skip to main content

Panel

Struct Panel 

Source
pub struct Panel {
Show 20 fields pub layout: Option<(u32, u32, u32)>, pub xlabel: Option<String>, pub ylabel: Option<String>, pub title: Option<String>, pub legend: Vec<String>, pub xlim: Option<(f64, f64)>, pub ylim: Option<(f64, f64)>, pub grid: bool, pub series: Vec<PendingSeries>, pub annotations: Vec<(f64, f64, String)>, pub font_size: Option<u32>, pub line_width: Option<f32>, pub marker_size: Option<u32>, pub grid_color: Option<StyleColor>, pub grid_width: Option<f32>, pub axis_mode: Option<AxisMode>, pub colormap: Option<ColormapSpec>, pub right_series: Vec<PendingSeries>, pub right_ylim: Option<(f64, f64)>, pub right_ylabel: Option<String>,
}
Expand description

A committed subplot panel ready for file rendering.

Fields§

§layout: Option<(u32, u32, u32)>

Grid position (rows, cols, index_1based) inside a subplot layout.

§xlabel: Option<String>

X-axis label.

§ylabel: Option<String>

Y-axis label.

§title: Option<String>

Chart title.

§legend: Vec<String>

Series labels for legend.

§xlim: Option<(f64, f64)>

X-axis range override.

§ylim: Option<(f64, f64)>

Y-axis range override.

§grid: bool

Whether to draw grid lines.

§series: Vec<PendingSeries>

Accumulated data series.

§annotations: Vec<(f64, f64, String)>

Text annotations placed on this panel.

§font_size: Option<u32>

Session-level font size carried into this panel.

§line_width: Option<f32>

Session-level line width carried into this panel.

§marker_size: Option<u32>

Session-level marker size carried into this panel.

§grid_color: Option<StyleColor>

Session-level grid colour override carried into this panel.

§grid_width: Option<f32>

Session-level grid line width carried into this panel.

§axis_mode: Option<AxisMode>

Axis display mode override carried into this panel.

§colormap: Option<ColormapSpec>

Active colormap specification carried into this panel (for ColorScatter).

§right_series: Vec<PendingSeries>

Series on the secondary (right) Y axis.

§right_ylim: Option<(f64, f64)>

Override for the right Y axis range [min, max].

§right_ylabel: Option<String>

Label for the right Y axis.

Trait Implementations§

Source§

impl Clone for Panel

Source§

fn clone(&self) -> Panel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Default for Panel

Source§

fn default() -> Panel

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Panel

§

impl RefUnwindSafe for Panel

§

impl Send for Panel

§

impl Sync for Panel

§

impl Unpin for Panel

§

impl UnsafeUnpin for Panel

§

impl UnwindSafe for Panel

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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