Skip to content

Instantly share code, notes, and snippets.

@SiegeLord
Created June 5, 2013 13:44
Show Gist options
  • Save SiegeLord/5713967 to your computer and use it in GitHub Desktop.
Save SiegeLord/5713967 to your computer and use it in GitHub Desktop.
Gnuplot
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