Matplotlib tutorial

A tutorial in one example

>>> from numpy import *
>>> import pylab as pt
>>> x = arange(0,2*pi,2*pi/100.)
>>> y = sin(x)
>>> z = cos(x)
>>> pt.plot(x,y)
>>> pt.plot(x,z)
>>> pt.plot(x,y,'-r')
>>> pt.plot(x,z,'.b')
>>> pt.scatter(x,y)
>>> pt.xlabel("x")
>>> pt.ylabel("y,z")
>>> pt.title("A tutorial in one example")
>>> pt.show()