Merge pull request #9 from amake/gnuplotbin

Parameterize gnuplot binary name
This commit is contained in:
Christian Wolf 2023-02-28 11:36:39 +01:00 committed by GitHub
commit a198a8fa43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
eplot
View File

@ -60,6 +60,7 @@ require 'tempfile'
$Version="2.07 03.05.2007"
$TextViewer="cat"
$GnuPlot4OrNewer=true
$GnuPlotBin="gnuplot"
# **************************************************************************
# VARIOUS CONSTANTS
@ -399,7 +400,7 @@ class Controller
# ---- print the options
com="echo '\n"+getStyleString+@oc["MiscOptions"]
com=com+"set multiplot;\n" if doMultiPlot
com=com+"plot "+@oc["Range"]+comString+"\n'| gnuplot -persist"
com=com+"plot "+@oc["Range"]+comString+"\n'| "+$GnuPlotBin+" -persist"
printAndRun(com)
# ---- convert to PDF
if @oc["DoPDF"]