use std::env; use gnuplot::{Figure, Color}; use timeseries::io::csv; fn main() { let file_path = env::args().nth(1).unwrap(); let ts = csv::read_from_file(&file_path, "%Y-%m-%d %H:%M:%S").unwrap(); let mut fg = Figure::new(); fg.axes2d().lines(&ts.index, &ts.values, &[Color("blue")]); fg.show(); }