Parameterize gnuplot binary name

This commit is contained in:
Aaron Madlon-Kay 2020-10-24 15:01:35 +09:00
parent aa4d607f05
commit 76d50128ed

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"]