pub struct WithKeyPoints<Inner> where
    Inner: Ranged
{ /* private fields */ }
Available on crate feature plot only.
Expand description

The coordinate decorator that binds a key point vector. Normally, all the ranged coordinate implements its own keypoint algorithm to determine how to render the tick mark and mesh grid. This decorator allows customized tick mark specifiied by vector. See BindKeyPoints::with_key_points for details. Note: For any coordinate spec wrapped by this decorator, the maxium number of labels configured by MeshStyle will be ignored and the key point function will always returns the entire vector

Implementations

Specify the light key points, which is used to render the light mesh line

Get a reference to the bold points

Get a mut reference to the bold points

Get a reference to light key points

Get a mut reference to the light key points

Trait Implementations

Get the number of element in the range Note: we assume that all the ranged discrete coordinate has finite value Read more

Map a value to the index Read more

Reverse map the index to the value Read more

Return a iterator that iterates over the all possible values Read more

Returns the previous value in this range Read more

Returns the next value in this range Read more

The type of this value in this range specification

This marker decides if Plotters default ValueFormatter implementation should be used. This assicated type can be one of follow two types: Read more

Get the range of this value

This function maps the value to i32, which is the drawing coordinate

This function gives the key points that we can draw a grid based on this

This function provides the on-axis part of its range

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Bind a existing coordinate spec with a given key points algorithm. See WithKeyPointMethod for more details. Example: Read more

Bind a existing coordinate spec with a given key points vector. See WithKeyPoints for more details. Example: 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.

Set the step value, make a linspace coordinate from the given range. By default the matching method use the exact match Read more

Make the partial axis Read more

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.