Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conditional execution based on the Gnuplot version

Tags:

gnuplot

Since Gnuplot 4 and Gnuplot 5 are partially incompatible, I'd like to have conditional execution based on the Gnuplot version, e.g. to set some linewidth with Gnuplot 4 and some other linewidth with Gnuplot 5. How can I do this entirely in a Gnuplot script (i.e. without having to use a shell script wrapper)?

like image 296
vinc17 Avatar asked Feb 19 '15 00:02

vinc17


1 Answers

The variable GPVAL_VERSION is always set to the version number. You can use it like any other variable. Note that it's a number, not a string. To see the other gnuplot-defined variables, type the command "show var all".

like image 191
Lee Phillips Avatar answered Sep 30 '22 10:09

Lee Phillips