pub struct SecondaryMeshStyle<'a, 'b, X: Ranged, Y: Ranged, DB: DrawingBackend> { /* private fields */ }
Expand description

The style used to describe the mesh and axis for a secondary coordinate system.

Implementations

Set the style definition for the axis

  • style: The style for the axis

The offset of x labels. This is used when we want to place the label in the middle of the grid. This is used to adjust label position for histograms, but since plotters 0.3, this use case is deprecated, see SegmentedCoord coord decorator for more details

  • value: The offset in pixel

The offset of y labels. This is used when we want to place the label in the middle of the grid. This is used to adjust label position for histograms, but since plotters 0.3, this use case is deprecated, see SegmentedCoord coord decorator for more details

  • value: The offset in pixel

Set how many labels for the X axis at most

  • value: The maximum desired number of labels in the X axis

Set how many label for the Y axis at most

  • value: The maximum desired number of labels in the Y axis

Set the formatter function for the X label text

  • fmt: The formatter function

Set the formatter function for the Y label text

  • fmt: The formatter function

Set the axis description’s style. If not given, use label style instead.

  • style: The text style that would be applied to descriptions

Set the X axis’s description

  • desc: The description of the X axis

Set the Y axis’s description

  • desc: The description of the Y axis

Draw the axes for the secondary coordinate system

Set the label style for the secondary axis

Set all the tick marks to the same size value: The new size

Sets the tick mark size for a given label area position. value: The new size

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.