gnuplot_wrapper/gnuplot.rs
use std::process::{Child, Command};
use crate::script::Script;
/// Entry point
pub struct Gnuplot {
}
impl Gnuplot {
/// Execute gnuplot script
pub fn execute(script: Script) -> Child {
return Command::new("gnuplot")
.arg("-p")
.arg(script.get_path())
.spawn()
.expect("Error when running gnuplot");
}
}