Created
June 5, 2013 13:44
-
-
Save SiegeLord/5713967 to your computer and use it in GitHub Desktop.
Gnuplot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::run::{Process, ProcessOptions}; | |
use std::str::{byte_slice}; | |
fn main() | |
{ | |
let mut p = Process::new("gnuplot", [~"-p"], ProcessOptions::new()); | |
let input = p.input(); | |
byte_slice("plot x*x\n", |s| { input.write(s); } ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment