Adds legend to the current axes using default Legend settings For more control (fontsize, columns, outside placement), create a [`Legend`] yourself and add it via [`add`](Self::add).
(&mut self)
| 299 | /// For more control (fontsize, columns, outside placement), create a [`Legend`] yourself |
| 300 | /// and add it via [`add`](Self::add). |
| 301 | pub fn legend(&mut self) -> &mut Self { |
| 302 | let mut legend = Legend::new(); |
| 303 | legend.draw(); |
| 304 | self.add(&legend) |
| 305 | } |
| 306 | |
| 307 | /// Adds grid and labels |
| 308 | pub fn grid_and_labels(&mut self, xlabel: &str, ylabel: &str) -> &mut Self { |