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

Method display_x

src/plot_widget.rs:1938–1943  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1936 .map(|series| series.pickable && point_id.point_index < series.positions.len())
1937 .unwrap_or(false)
1938 }
1939}
1940
1941fn apply_data_aspect(camera: &mut Camera, bounds: &Rectangle, aspect: f64) -> bool {
1942 let width = bounds.width.max(1.0) as f64;
1943 let height = bounds.height.max(1.0) as f64;
1944 let target_half_y = aspect * camera.half_extents.x * (height / width);
1945 if (camera.half_extents.y - target_half_y).abs() > f64::EPSILON {
1946 camera.half_extents.y = target_half_y;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected