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

Method with_y_lim

src/plot_widget_builder.rs:203–206  ·  view source on GitHub ↗

Set the y-axis limits (min, max) for the plot. If set, these will override autoscaling for the y-axis.

(mut self, min: f64, max: f64)

Source from the content-addressed store, hash-verified

201 /// Set the y-axis limits (min, max) for the plot.
202 /// If set, these will override autoscaling for the y-axis.
203 pub fn with_y_lim(mut self, min: f64, max: f64) -> Self {
204 self.y_lim = Some((min, max));
205 self
206 }
207
208 /// Set the y-axis scale mode.
209 ///

Callers 5

newFunction · 0.80
plot_widgetFunction · 0.80
newFunction · 0.80
newMethod · 0.80
marker_plotFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected