Set a style function for the plot widget.
(&mut self, style: F)
| 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 |