Set a custom style resolver for the plot widget.
(mut self, style: F)
| 302 | self.data_aspect = None; |
| 303 | } |
| 304 | self |
| 305 | } |
| 306 | |
| 307 | /// Set a custom style resolver for the plot widget. |
| 308 | pub fn with_style<F>(mut self, style: F) -> Self |
| 309 | where |
| 310 | F: Fn(&Theme) -> PlotStyle + Send + Sync + 'static, |
| 311 | { |
| 312 | self.style = Some(Arc::new(style)); |
| 313 | self |