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

Method with_x_tick_formatter

src/plot_widget_builder.rs:232–238  ·  view source on GitHub ↗

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

(mut self, formatter: F)

Source from the content-addressed store, hash-verified

230
231 /// Set a custom formatter for the x-axis tick labels.
232 pub fn with_x_tick_formatter<F>(mut self, formatter: F) -> Self
233 where
234 F: Fn(Tick) -> String + Send + Sync + 'static,
235 {
236 self.x_tick_formatter = Some(Arc::new(formatter));
237 self
238 }
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

Callers 5

newFunction · 0.80
new_plotFunction · 0.80
newMethod · 0.80
newFunction · 0.80
newFunction · 0.80

Calls 1

newFunction · 0.50

Tested by

no test coverage detected