[SciPy-user] gplt

Alan G Isaac aisaac at american.edu
Tue Aug 3 10:44:30 EDT 2004


On Tue, 03 Aug 2004, Matthew Hellman apparently wrote:
> Does anyone know why the function legend() provides no output on the
> screen?  Also, I would appreciate any suggestions on how to trace 2-D
> lines so as to be able to view all the data points on the graph.

from scipy import *
from scipy import gplt
d=arange(-1.,1.,0.01)
gplt.plot(d,f(d),'with lines lt 1',\
          d,f(d),'with points lt 1')
gplt.legend('title "Legend"')

hth,
Alan Isaac






More information about the SciPy-User mailing list