@@ -1091,6 +1091,9 @@ class gnuplotlib has a separate gnuplot process and a plot window. If multiple
10911091import numpy as np
10921092import numpysane as nps
10931093
1094+
1095+ gnuplot_executable = 'gnuplot'
1096+
10941097# setup.py assumes the version is a simple string in '' quotes
10951098__version__ = '0.38'
10961099
@@ -1147,7 +1150,7 @@ def _getGnuplotFeatures():
11471150
11481151 # first, I run 'gnuplot --help' to extract all the cmdline options as features
11491152 try :
1150- helpstring = subprocess .check_output (['gnuplot' , '--help' ],
1153+ helpstring = subprocess .check_output ([gnuplot_executable , '--help' ],
11511154 stderr = subprocess .STDOUT ,
11521155 env = env ).decode ()
11531156 except FileNotFoundError :
@@ -1161,7 +1164,7 @@ def _getGnuplotFeatures():
11611164 # then I try to set a square aspect ratio for 3D to see if it works
11621165 equal_3d_works = True
11631166 try :
1164- out = subprocess .check_output (('gnuplot' , '-e' , "set view equal" ),
1167+ out = subprocess .check_output ((gnuplot_executable , '-e' , "set view equal" ),
11651168 stderr = subprocess .STDOUT ,
11661169 env = env ).decode ()
11671170 if re .search ("(undefined variable)|(unrecognized option)" , out , re .I ):
@@ -1483,7 +1486,7 @@ def _startgnuplot(self):
14831486
14841487 self ._logEvent ("_startgnuplot()" )
14851488
1486- cmd = ['gnuplot' ]
1489+ cmd = [gnuplot_executable ]
14871490
14881491 # I dup the handle to standard output. The main use for this is the dumb
14891492 # terminal. I want it to write to the console. Normally "set dumb"
0 commit comments