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

Method with_y_tick_formatter

src/plot_widget_builder.rs:241–247  ·  view source on GitHub ↗

Set a custom formatter for the y-axis tick labels.

(mut self, formatter: F)

Source from the content-addressed store, hash-verified

239
240 /// Set a custom formatter for the y-axis tick labels.
241 pub fn with_y_tick_formatter<F>(mut self, formatter: F) -> Self
242 where
243 F: Fn(Tick) -> String + Send + Sync + 'static,
244 {
245 self.y_tick_formatter = Some(Arc::new(formatter));
246 self
247 }
248
249 /// Set a custom tick producer for generating tick positions along the x-axis.
250 ///

Callers 3

newFunction · 0.80
newMethod · 0.80
newFunction · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected