Set the x-axis label for the plot.
(mut self, label: impl Into<String>)
| 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 { |
no test coverage detected