use gnuplot::{Color, Figure, PlotOption::Caption};
fn main() {
let x = [0u32, 1, 2];
let y = [3u32, 4, 5];
let mut fg = Figure::new();
fg.axes2d()
.lines(&x, &y, &[Caption("A line"), Color("black")]);
fg.show().unwrap();
}
On version 0.0.40 and above the path separators get lost at some point and result in the error message:
line 0: warning: Cannot find or open file "C:Users<user>AppDataLocalTemp.tmpDx2PP1"
line 0: No data in plot
OS: Windows 10
Gnuplot versions tested: 5.20, 5.28, 5.4.8