adds a new graph / plot to the original plot.
(&mut self, args: A)
| 52 | |
| 53 | /// adds a new graph / plot to the original plot. |
| 54 | pub fn add<A: PlotArg>(&mut self, args: A) { |
| 55 | let plot = args.as_plot(); |
| 56 | self.xs.push(plot.xs[0].clone()); |
| 57 | self.ys.push(plot.ys[0].clone()); |
| 58 | self.line_desc.push(plot.line_desc[0]) |
| 59 | } |
| 60 | |
| 61 | pub fn set_title(&mut self, title: &str) { |
| 62 | self.axis_desc.title = title.to_string(); |