plotters::coord

Module combinators

Source
Expand description

The coordinate combinators

Coordinate combinators are very important part of Plotters’ coordinate system. The combinator is more about the “combinator pattern”, which takes one or more coordinate specification and transform them into a new coordinate specification.

Structs§

  • Grouping the value in the coordinate specification.
  • The coordinate combinator that transform a continuous coordinate to a discrete coordinate to a discrete coordinate by a giving step.
  • A log scaled coordinate axis
  • LogRangeDeprecated
    The logarithmic coordinate decorator. This decorator is used to make the axis rendered as logarithmically.
  • A nested coordinate spec which is a discrete coordinate on the top level and for each value in discrete value, there is a secondary coordinate system. And the value is defined as a tuple of primary coordinate value and secondary coordinate value
  • The coordinate decorator that allows customized keypoint algorithms. Normally, all the coordinate spec implements its own key point algorithm But this decorator allows you override the pre-defined key point algorithm.
  • 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 maximum number of labels configured by MeshStyle will be ignored and the key point function will always returns the entire vector

Enums§

Traits§

Functions§

  • Make a partial axis based on the percentage of visible portion. We can use into_partial_axis to create a partial axis range specification. But sometimes, we want to directly specify the percentage visible to the user.