pub enum Curve<X, Y> {
    Dots {
        x: X,
        y: Y,
    },
    Impulses {
        x: X,
        y: Y,
    },
    Lines {
        x: X,
        y: Y,
    },
    LinesPoints {
        x: X,
        y: Y,
    },
    Points {
        x: X,
        y: Y,
    },
    Steps {
        x: X,
        y: Y,
    },
}
Expand description

Types of “curve” plots

Variants

Dots

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

A minimally sized dot on each data point

Impulses

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

A vertical “impulse” on each data point

Lines

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

Line that joins the data points

LinesPoints

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

Line with a point on each data point

Points

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

A point on each data point

Steps

Fields

x: X

X coordinate of the data points

y: Y

Y coordinate of the data points

An step _| between each data point

Trait Implementations

The properties associated to the plot

Plots some data with some configuration

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.