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

The struct that is used for tracking the configuration of a mesh of any chart

Implementations

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

Set the tick mark size on the axes. When this is set to negative, the axis value label will become inward.

  • pos: The which label area we want to set
  • value: The size specification

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

Disable the mesh for the x axis.

Disable the mesh for the y axis

Disable drawing the X axis

Disable drawing the Y axis

Disable drawing all meshes

Disable drawing all axes

Set the style definition for the axis

  • style: The style for the axis

Set the maximum number of divisions for the minor grid

  • value: Maximum desired divisions between two consecutive X labels

Set the maximum number of divisions for the minor grid

  • value: Maximum desired divisions between two consecutive Y labels

Set the maximum number of divisions for the minor grid

  • value: Maximum desired divisions between two consecutive labels in X and Y

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 style for the coarse grind grid

  • style: This is the coarse grind grid style

Set the style for the fine grind grid

  • style: The fine grind grid style

Set the style of the label text

  • style: The text style that would be applied to the labels

Set the style of the label X axis text

  • style: The text style that would be applied to the labels

Set the style of the label Y axis text

  • style: The text style that would be applied to the labels

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 configured mesh on the target plot

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.