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

Method set_style

src/plot_widget.rs:193–198  ·  view source on GitHub ↗

Set a style function for the plot widget.

(&mut self, style: F)

Source from the content-addressed store, hash-verified

191
192 /// Set the data aspect ratio (y units per x unit). Use 1.0 for square pixels.
193 pub fn set_data_aspect(&mut self, aspect: f64) {
194 if aspect.is_finite() && aspect > 0.0 {
195 self.data_aspect = Some(aspect);
196 } else {
197 self.data_aspect = None;
198 }
199 self.data_version = self.data_version.wrapping_add(1);
200 }
201

Callers 1

updateMethod · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected