Set the x-axis label.
(&mut self, label: impl Into<String>)
| 266 | self.data_version = self.data_version.wrapping_add(1); |
| 267 | Ok(()) |
| 268 | } |
| 269 | |
| 270 | /// Add a horizontal reference line to the plot. |
| 271 | /// If there exists a line with the same `hline.id` ([ShapeId]), the old one will be replaced. |
| 272 | pub fn add_hline(&mut self, hline: HLine) { |
| 273 | self.hlines.insert(hline.id, hline); |