gnuplot_wrapper/
gnuplot.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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");
    }
}