()
| 1 | use graplot::Plot; |
| 2 | |
| 3 | fn main() { |
| 4 | let xs = [1., 2., 3.]; |
| 5 | let ys = [1.7, 3., 1.9]; |
| 6 | |
| 7 | let ys1 = [1.4, 1.6, 1.5]; |
| 8 | |
| 9 | let ys2 = [0.9, 1.2, 1.7, 1.9, 2.]; |
| 10 | |
| 11 | let mut plot = Plot::new((xs, ys)); |
| 12 | plot.add((xs, ys1, "c-o")); |
| 13 | plot.add((ys2, "r-")); |
| 14 | plot.show(); |
| 15 | } |