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.
()
| 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 { |
nothing calls this directly
no outgoing calls
no test coverage detected