MCPcopy Create free account
hub / github.com/donkeyteethUX/iced_plot / axes

Method axes

src/transform.rs:133–138  ·  view source on GitHub ↗

Interpret values as normalized positions inside the plot area. `0.0` is the low edge of the axis and `1.0` is the high edge. A point using `PositionTransform::axes()` therefore remains fixed in the plot area during pan and zoom.

()

Source from the content-addressed store, hash-verified

131 /// using `PositionTransform::axes()` therefore remains fixed in the plot
132 /// area during pan and zoom.
133 pub const fn axes() -> Self {
134 Self {
135 coordinate_system: CoordinateSystem::Axes,
136 operation: TransformOperation::Identity,
137 }
138 }
139
140 /// Convert a data value with `value * scale + translate` before axis scaling.
141 pub const fn affine(scale: f64, translate: f64) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected