Skip to main content

PendingSeries

Enum PendingSeries 

Source
pub enum PendingSeries {
    Line(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Scatter(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Bar(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Stem(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Hist {
        counts: Vec<usize>,
        edges: Vec<f64>,
        style: Option<StyleSpec>,
    },
    Fill(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Area(Vec<f64>, Vec<f64>, Option<StyleSpec>),
    Quiver(Vec<f64>, Vec<f64>, Vec<f64>, Vec<f64>, Option<StyleSpec>),
    ErrorBar {
        x: Vec<f64>,
        y: Vec<f64>,
        e_low: Vec<f64>,
        e_high: Vec<f64>,
        style: Option<StyleSpec>,
    },
    ColorScatter {
        x: Vec<f64>,
        y: Vec<f64>,
        sz: Vec<f64>,
        c: Vec<f64>,
        c_min: f64,
        c_max: f64,
    },
    Pie {
        values: Vec<f64>,
        labels: Vec<String>,
        explode: Vec<f64>,
    },
}
Expand description

A renderable data series stored for deferred rendering under hold/subplot.

Variants§

§

Line(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Connected line plot, with optional style override.

§

Scatter(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Point-cloud scatter, with optional style override.

§

Bar(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Vertical bar chart, with optional style override.

§

Stem(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Stem (lollipop) chart, with optional style override.

§

Hist

Histogram — pre-computed counts and bin edges, with optional style override.

Fields

§counts: Vec<usize>
§edges: Vec<f64>
§

Fill(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Filled polygon.

§

Area(Vec<f64>, Vec<f64>, Option<StyleSpec>)

Area under a curve (polygon closing along y = 0).

§

Quiver(Vec<f64>, Vec<f64>, Vec<f64>, Vec<f64>, Option<StyleSpec>)

Vector field: origin coordinates (x, y) and displacement vectors (u, v), with optional style override.

§

ErrorBar

Vertical error bars with symmetric or asymmetric half-lengths.

e_low and e_high store the downward and upward half-extents respectively (both are non-negative distances from y[i]).

Fields

§x: Vec<f64>

X positions.

§y: Vec<f64>

Y centre positions.

§e_low: Vec<f64>

Downward half-extents (≥ 0).

§e_high: Vec<f64>

Upward half-extents (≥ 0).

§style: Option<StyleSpec>

Optional style override.

§

ColorScatter

Per-point color scatter plot mapped through the active colormap.

Fields

§x: Vec<f64>

X positions.

§y: Vec<f64>

Y positions.

§sz: Vec<f64>

Per-point marker radii in pixels.

§c: Vec<f64>

Scalar values that drive the colormap lookup.

§c_min: f64

Minimum c value (for normalisation).

§c_max: f64

Maximum c value (for normalisation).

§

Pie

Pie chart with optional per-slice labels and explode offsets.

Fields

§values: Vec<f64>

Slice magnitudes (will be normalised to 100 % internally).

§labels: Vec<String>

Optional per-slice text labels (empty String = no label for that slice).

§explode: Vec<f64>

Per-slice explode offsets as a fraction of the radius (0.0 = no offset).

Trait Implementations§

Source§

impl Clone for PendingSeries

Source§

fn clone(&self) -> PendingSeries

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

Auto Trait Implementations§

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