[Numpy-discussion] matplotlib
John Hunter
jdhunter at ace.bsd.uchicago.edu
Mon Feb 13 07:13:08 EST 2006
>>>>> "Bill" == Bill Baxter <wbaxter at gmail.com> writes:
Bill> Anyone know if matplotlib is supposed to work with the new
Bill> NumPy or if there is work afoot to make it work? It seems
Bill> to truncate all numpy.array and numpy.matrix inputs to
Bill> integer values:
You're script as posted is incomplete
import matplotlib
matplotlib.interactive(True)
matplotlib.use('WXAgg')
import matplotlib.pylab as g
g.plot(rand(5),rand(5),'bo')
where for example is rand coming from? My guess is you have an import
statement you are not showing us.
If you are using a recent numpy and matplotlib, and set numerix to
numpy in your matplotlib rc file (~/.matplotlib/matplotlibrc)
everything should work if you get your array symbols from pylab, numpy
or matplotlib.numerix (all of which will get their symbols from
numpy....)
JDH
More information about the NumPy-Discussion
mailing list