[][src]Module plotters::prelude

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

Re-exports

pub use crate::chart::ChartBuilder;
pub use crate::chart::ChartContext;
pub use crate::coord::CoordTranslate;
pub use crate::drawing::*;
pub use crate::style::ShapeStyle;
pub use crate::style::TextStyle;

Structs

Black

The predefined black color

Blue

The predefined blue color

CandleStick

The candelstick data point element

Circle

A circle element

Cross

Describe a cross

Cyan

The predefined cyan color

EmptyElement

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

FontDesc

Describes a font

Green

The predefined green color

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

Magenta

The predefined magenta color

OwnedText

A text element. This is similar to the text element, but it owns the string.

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

PointSeries

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

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

Rectangle

A rectangle element

Red

The predefined red color

Text

A text element

Transparent

The predefined transparent

White

The predefined white color

Yellow

The predefined yellow color

Traits

Color

Any color representation

Mixable

The trait for any color that can composite with other color

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

Type Definitions

DrawResult

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