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

Method with_x_lim

src/plot_widget_builder.rs:187–190  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

185 /// Set the x-axis limits (min, max) for the plot.
186 /// If set, these will override autoscaling for the x-axis.
187 pub fn with_x_lim(mut self, min: f64, max: f64) -> Self {
188 self.x_lim = Some((min, max));
189 self
190 }
191
192 /// Set the x-axis scale mode.
193 ///

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