Expand description
The high-level plotting abstractions.
Plotters uses ChartContext, a thin layer on the top of DrawingArea, to provide
high-level chart specific drawing functionalities, like, mesh line, coordinate label
and other common components for the data chart.
To draw a series, ChartContext::draw_series is used to draw a series on the chart.
In Plotters, a series is abstracted as an iterator of elements.
ChartBuilder is used to construct a chart. To learn more detailed information, check the
detailed description for each struct.
Structs§
- Chart
Builder - The helper object to create a chart context, which is used for the high-level figure drawing. With the help of this object, we can convert a basic drawing area into a chart context, which allows the high-level charting API being used on the drawing area.
- Chart
Context - The context of the chart. This is the core object of Plotters. Any plot/chart is abstracted as this type, and any data series can be placed to the chart context.
- Chart
State - A chart context state - This is the data that is needed to reconstruct the chart context without actually drawing the chart. This is useful when we want to do realtime rendering and want to incrementally update the chart.
- Dual
Coord Chart Context - The chart context that has two coordinate system attached
- Dual
Coord Chart State - The chart state for a dual coord chart, see the detailed description for
ChartStatefor more information about the purpose of a chart state - Mesh
Style - The struct that is used for tracking the configuration of a mesh of any chart
- Series
Anno - The annotations (such as the label of the series, the legend element, etc) When a series is drawn onto a drawing area, an series annotation object is created and a mutable reference is returned.
- Series
Label Style - The struct to specify the series label of a target chart context
Enums§
- Label
Area Position - The enum used to specify the position of label area.
This is used when we configure the label area size with the API
set_label_area_size - Series
Label Position - Describes where we want to put the series label