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

Method with_transform

src/reference_lines.rs:52–55  ·  view source on GitHub ↗

Set how this reference line interprets or converts its x value before drawing. For normal data values, conversion runs before the plot's x-axis scale. `Transform::axes()` uses normalized plot positions instead.

(mut self, transform: Transform)

Source from the content-addressed store, hash-verified

50 /// For normal data values, conversion runs before the plot's x-axis scale.
51 /// `Transform::axes()` uses normalized plot positions instead.
52 pub fn with_transform(mut self, transform: Transform) -> Self {
53 self.transform = Some(transform);
54 self
55 }
56
57 /// Interpret the x position as a normalized plot coordinate.
58 pub fn with_axes_transform(mut self) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected