|
From: dbrant <bra...@ho...> - 2014-12-17 20:21:35
|
Hi Gnuplotters For years i have used the following script taken from the Gnuplot In Action book to generate my graphs: save "$0.gp" # Save commands to file set t push # Save commands to file set t png $1 # Store current terminal settings # options from second argument set o "$0.png" # Set output file name replot # Generate plot set o # Restore output to interactive terminal set t pop # Restore interactive terminal settings This could be invoked as: call 'export.gp' 'myplot' 'size 160,100' With the advent of Gnuplot 5.0 this no longer works due to changes in argument references from tokens $0 ... etc to string variables. Unfortunately i cannot get my head around it by way of examples i have seen. Could anyone please re-work the script to take recent developments into account that i may understand use. Regards, Dave -- View this message in context: http://gnuplot.10905.n7.nabble.com/Call-help-with-export-script-in-Gnuplot-5-0-tp19162.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |