Expand description
Coordinate system abstractions.
Coordinate systems can be attached to drawing areas. By doing so,
the drawing area can draw elements in the guest coordinate system.
DrawingArea::apply_coord_spec
is used to attach new coordinate system
to the drawing area.
CoordTranslate
is the trait required by DrawingArea::apply_coord_spec
. It provides
the forward coordinate translation: from the logic coordinate to the pixel-based absolute
backend coordinate system.
When the coordinate type implements ReverseCoordTranslate
,
the backward translation is possible, which allows mapping pixel-based coordinate into
the logic coordinate. It’s not usually used for static figure rendering, but may be useful
for a interactive figure.
RangedCoord
is the 2D cartesian coordinate system that has two Ranged
axis.
A ranged axis can be logarithmic and by applying an logarithmic axis, the figure is logarithmic scale.
Also, the ranged axis can be decereted, and this is required by the histogram series.
Structs§
- LogCoord
- A log scaled coordinate axis
- LogRange
- The wrapper type for a range of a log-scaled value
- Ranged
Coord - The coordinate described by two ranged value
- Ranged
Coordf32 - The ranged coordinate for type f32
- Ranged
Coordf64 - The ranged coordinate for type f64
- Ranged
Coordi32 - The ranged coordinate for type i32
- Ranged
Coordi64 - The ranged coordinate for type i64
- Ranged
Coordu32 - The ranged coordinate for type u32
- Ranged
Coordu64 - The ranged coordinate for type u64
- Ranged
Date - The ranged coordinate for date
- Ranged
Date Time - The ranged coordinate for the date and time
- Shift
- The coordinate translation that only impose shift
- Shift
AndTrans - We can compose an abitray transformation with a shift
Enums§
- Mesh
Line - Represent a coordinate mesh for the two ranged value coordinate system
Traits§
- AsRanged
Coord - The trait for the type that can be converted into a ranged coordinate axis
- Coord
Translate - The trait that translates some customized object to the backend coordinate
- Descrete
Ranged - The trait indicates the coordinate is descrete, so that we can draw histogram on it
- LogScalable
- The trait for the type that is able to be presented in the log scale
- Ranged
- The trait that indicates we have a ordered and ranged value Which is used to describe the axis
- Reversable
Ranged - The trait indicates the ranged value can be map reversely, which means an pixel-based cooridinate is given, it’s possible to figureout the underlying logic value.
- Reverse
Coord Translate - The trait indicates that the coordinate system supports reverse transform This is useful when we need an interactive plot, thus we need to map the event from the backend coordinate to the logical coordinate