Basic Gnuplot Tutorial – I

This tutorial uses Ubuntu Heron, Python 2.5, python-gnuplot 1.8-1

from Numeric import *
import Gnuplot

g = Gnuplot.Gnuplot()

# generate x, y data to plot
x = arange(10, typecode=Float)
y = x**2

# convert to a form that the gnuplot interface can deal with
d = Gnuplot.Data(x, y, title=’data from python’)

g.xlabel(‘x’)
g.ylabel(‘x^2′) . . . → Read More: Basic Gnuplot Tutorial – I