Page 1 of 1

Install Gnuplot.py on Unix

Posted: Tue Jul 19, 2016 3:07 pm
by Eli
Gnuplot.py is a Python package that interfaces to Gnuplot, the popular open-source plotting program. It allows you to use Gnuplot from within Python to plot arrays of data from memory, data files, or mathematical functions, read more.

1. Download gnuplot-py-1.8.tar.gz or gnuplot-py-1.8.zip from here

2. Extract the archive to a temporary directory by typing

Code: Select all

tar -xzvf gnuplot-py-1.8.tar.gz 
or for zip folder using

Code: Select all

unzip file.zip -d destination_folder
If the unzip command isn't already installed on your system, then run:

Code: Select all

sudo apt-get install unzip
3. Move to the directory gnuplot-py-1.8 and Install by typing

Code: Select all

python setup.py install
while still in the same directory, test Gnuplot.py by typing

Code: Select all

python demo.py
You should see something like this
Gnuplot-py.png
See also how to call gnuplot from python.