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

Method display_y

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

Source from the content-addressed store, hash-verified

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;
1947 return true;
1948 }
1949 false
1950}
1951
1952impl PlotWidget {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected