gnuplot-wrapper-0.0.3 has been yanked.
gnuplot-wrapper
Gnuplot - to get started with gnuplot.
GnuplotLiveProcess - for working with gnuplot in interactive mode.
GnuplorScriptProcess - for working with gnuplot in script launch mode.
Script - script for gnuplot.
execute.wait.unwrap;
How to use
Start gnuplot
First of all we need to start gnuplot. There are three ways to do this.
new; // equals to Gnuplot::new_with_path_str("gnuplot")
new_with_path_str;
new_with_path;
Select mode
Then you need to decide in which mode you want to work with gnuplot and create an instance of gnuplot.
Scripting mode:
let script: Script = ...;
let mut gnuplot_process: GnuplorScriptProcess = gnuplot.execute_script;
Live mode:
let mut gnuplot_process: GnuplotLiveProcess = gnuplot.run_live;
Wait for gnuplot to complete
Wait for gnuplot to complete.
gnuplot_process.wait;
How to create a script
let mut script = new;
script.add_raw_command;
script.add_raw_command;
script.add_raw_command;
script.add_raw_command;
script.save;
How to send a command to a live gnuplot
gnuplot_process.write;
How to wait for gnuplot to complete in live mode?
gnuplot_process.write;
gnuplot_process.wait;