Closed irr-github closed 2 years ago
indeed that's a good solution. I might add it to the experimental branch and update it along with other fixes.
new gnuplot_directory option is now implemented in the new version;
i.e. example usage should work now:
from PyGnuplot import gp Figure1 = gp(r"C:\Program Files\gnuplot\bin\gnuplot.exe") Figure1.a("plot sin(x)")
There's a small issue, which is that "gnuplot" isn't a name that works in cmd and popen can't find it. I would suggest having a "gnuplot_adress" at top to make it easier to change. The below works for me on win10
from subprocess import Popen as _Popen, PIPE as _PIPE
default_term = 'wxt' # change this if you use a different terminal gnuplot_address = r"C:\Program Files\gnuplot\bin\gnuplot.exe"
class _FigureList(object):
def figure(number=None): '''Make Gnuplot plot in a new Window or update a defined one figure(num=None, term='x11'):