pub struct GridInput {
    pub bounds: (f64, f64),
    pub base_step_size: f64,
}
Expand description

Input for “grid spacer” functions.

See Plot::x_grid_spacer() and Plot::y_grid_spacer().

Fields

bounds: (f64, f64)

Min/max of the visible data range (the values at the two edges of the plot, for the current axis).

base_step_size: f64

Recommended (but not required) lower-bound on the step size returned by custom grid spacers.

Computed as the ratio between the diagram’s bounds (in plot coordinates) and the viewport (in frame/window coordinates), scaled up to represent the minimal possible step.

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.

Should always be Self
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.