[][src]Module plotters::prelude

The module imports the most commonly used types and modules in Plotters

Re-exports

pub use crate::coord::CoordTranslate;
pub use crate::drawing::*;
pub use crate::style::BLACK;
pub use crate::style::BLUE;
pub use crate::style::CYAN;
pub use crate::style::GREEN;
pub use crate::style::MAGENTA;
pub use crate::style::RED;
pub use crate::style::TRANSPARENT;
pub use crate::style::WHITE;
pub use crate::style::YELLOW;

Structs

AreaSeries

An area series is similar to a line series but use a filled polygon

BitMapElement

The element that contains a bitmap on it

CandleStick

The candelstick data point element

ChartBuilder

The helper object to create a chart context, which is used for the high-level figure drawing. With the hlep of this object, we can convert a basic drawing area into a chart context, which allows the high-level chartting API beening used on the drawing area.

ChartContext

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.

Circle

A circle element

Cross

Describe a cross

DynElement

The container for a dynamically dispatched element

EmptyElement

An empty composibable element, which is the start point of an ad-hoc composible element

ErrorBar
FontDesc

Describes a font

HSLColor

The color described by HSL color space

Histogram

The series that aggregate data into a histogram

LineSeries

The line series object, which takes an iterator of points in guest coordinate system and creates the element rendering the line plot

LogCoord

A log scaled coordinate axis

LogRange

The wrapper type for a range of a log-scaled value

MultiLineText

An multi-line text element. The Text element allows only signle line text and the MultiLineText supports drawing multiple lines

Palette99

The palette of 99% accessibility

Palette100

The palette of 100% accessibility

Palette9999

The palette of 99.99% accessibility

PaletteColor

A color in the given palette

Path

An element of a series of connected lines

Pixel

An element of a single pixel

PointSeries

The point plot object, which takes an iterator of points in guest coordinate system and create an element for each point

Polygon

An element of a filled polygon

RGBColor

The color described by it's RGB value

RangedCoord

The coordinate described by two ranged value

RangedCoordf32

The ranged coordinate for type f32

RangedCoordf64

The ranged coordinate for type f64

RangedCoordi32

The ranged coordinate for type i32

RangedCoordi64

The ranged coordinate for type i64

RangedCoordu32

The ranged coordinate for type u32

RangedCoordu64

The ranged coordinate for type u64

RangedDate

The ranged coordinate for date

RangedDateTime

The ranged coordinate for the date and time

RangedDuration

The coordinate that for duration of time

Rectangle

A rectangle element

ShapeStyle

Style for any of shape

Text

A single line text element. This can be owned or borrowed string, dependeneds on String or str moved into.

TextStyle

Style of a text

TriangleMarker

Describe a triangle marker

Enums

FontTransform

Specifying text transformations

LabelAreaPosition

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

SeriesLabelPosition

Traits

AsRelative
Color

Any color representation

IntoCentric
IntoDynElement

The trait that makes the conversion from the statically dispatched element to the dynamically dispatched element

IntoFont
IntoPartialAxis
LogScalable

The trait for the type that is able to be presented in the log scale

Palette
Ranged

The trait that indicates we have a ordered and ranged value Which is used to describe the axis

SimpleColor

Color without alpha channel

Functions

make_partial_axis

Type Definitions

DrawResult

The type used to returns a drawing operation that can be failed