Module plotters::drawing[][src]

Expand description

The drawing utils for Plotters. In Plotters, we have two set of drawing APIs: low-level API and high-level API.

The low-level drawing abstraction, the module defines the DrawingBackend trait from the plotters-backend create. It exposes a set of functions which allows basic shape, such as pixels, lines, rectangles, circles, to be drawn on the screen. The low-level API uses the pixel based coordinate.

The high-level API is built on the top of high-level API. The DrawingArea type exposes the high-level drawing API to the remianing part of Plotters. The basic drawing blocks are composable elements, which can be defined in logic coordinate. To learn more details about the coordinate abstraction and element system.

Structs

DrawingArea

The abstraction of a drawing area. Plotters uses drawing area as the fundamental abstraction for the high level drawing API. The major functionality provided by the drawing area is 1. Layout specification - Split the parent drawing area into sub-drawing-areas 2. Coordinate Translation - Allows guest coordinate system attached and used for drawing. 3. Element based drawing - drawing area provides the environment the element can be drawn onto it.

DummyBackendError

This is the dummy backend placeholder for the backend that never fails

Rect

The representation of the rectangle in backend canvas

Enums

DrawingAreaErrorKind

The error description of any drawing area API

Traits

IntoDrawingArea

A type which can be converted into a root drawing area