MCPcopy Create free account
hub / github.com/elftausend/graplot / add

Method add

src/plots/plot.rs:54–59  ·  view source on GitHub ↗

adds a new graph / plot to the original plot.

(&mut self, args: A)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 1

as_plotMethod · 0.45

Tested by

no test coverage detected