gplot.py - mzechmeister/python GitHub Wiki
gplot.py
gplot.py is a small and powerful standalone script.
Install
wget https://raw.githubusercontent.com/mzechmeister/python/master/gplot.py
python -c "import setuptools; setuptools.setup(name='gplot')" develop --user
Quick start
from gplot import *
gplot([1,2,0,4,3.5], 'w l')
More examples
Add another curve to the plot
gplot+('sin(x)')
Chained settings
gplot.mxtics().mytics(2)
All gnuplot set ...
are supported.
Define gnuplot variables
gplot.var(a=1, b=4.5, c='a+4*b', c='"city"')
Two dimensional plots:
gplot.splot('sin(x)/x*sin(y)/y')
Other gnuplot wrappers:
- gnuplot-py (for a few attributes similar syntax, not maintained anymore? 2011)
- PyGnuplot or https://pypi.python.org/pypi/PyGnuplot
- https://github.com/jfindlay/gp.py
- https://github.com/fzenke/gpwrap
- https://github.com/kookma/Pyla
- https://github.com/acorbe/autogpy
Highlight summary of gplot.py:
- python2 and python3 and Jupyter (see demo)
- gnuplot 4.6 and gnuplot 5
- attribute methods for all set commands
- chained settings