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

Method with_x_label

src/plot_widget_builder.rs:76–82  ·  view source on GitHub ↗

Set the x-axis label for the plot.

(mut self, label: impl Into<String>)

Source from the content-addressed store, hash-verified

74
75 /// Set the x-axis label for the plot.
76 pub fn with_x_label(mut self, label: impl Into<String>) -> Self {
77 let l = label.into();
78 if !l.is_empty() {
79 self.x_label = Some(l);
80 }
81 self
82 }
83
84 /// Set the y-axis label for the plot.
85 pub fn with_y_label(mut self, label: impl Into<String>) -> Self {

Callers 13

newFunction · 0.80
newFunction · 0.80
plot_widgetFunction · 0.80
plot_widgetFunction · 0.80
newFunction · 0.80
newMethod · 0.80
new_plotFunction · 0.80
newFunction · 0.80
newFunction · 0.80
newFunction · 0.80
newFunction · 0.80
marker_plotFunction · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected