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§
- The helper object to create a chart context, which is used for the high-level figure drawing.
- The context of the chart. This is the core object of Plotters.
- 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.
- The chart context that has two coordinate system attached. This situation is quite common, for example, we with two different coordinate system. For instance this example This is done by attaching a second coordinate system to ChartContext by method ChartContext::set_secondary_coord. For instance of dual coordinate charts, see this example. Note:
DualCoordChartContext
is always deref to the chart context. - The chart state for a dual coord chart, see the detailed description for
ChartState
for more information about the purpose of a chart state. Similar to ChartState, but used for the dual coordinate charts. - The struct that is used for tracking the configuration of a mesh of any chart
- The style used to describe the mesh and axis for a secondary coordinate system.
- 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.
- The struct to specify the series label of a target chart context
Enums§
- Specifies one of the four label positions around the figure.
- Useful to specify the position of the series label.