The exception I posted is being thrown by numarray, so it is definitely being used.
As I stated, it was thrown while executing one of the examples provided with the matplotlib package:
#!/usr/bin/env python
# barchart_demo.py
# a bar plot with errorbars
from pylab import *
N = 5
menMeans = (20, 35, 30, 35, 27)
menStd = (2, 3, 4, 1, 2)
ind = arange(N) # the x locations for the groups
width = 0.35 # the width of the bars
p1 = bar(ind, menMeans, width, color='r', yerr=menStd)
womenMeans = (25, 32, 34, 20, 25)
womenStd = (3, 5, 2, 3, 3)
p2 = bar(ind+width, womenMeans, width, color='y', yerr=womenStd)
ylabel('Scores')
title('Scores by group and gender')
xticks(ind+width, ('G1', 'G2', 'G3', 'G4', 'G5') )
legend( (p1[0], p2[0]), ('Men', 'Women') )
#savefig('barchart_demo')
show()
Thanks,
Suresh
···
On Thu, 26 Oct 2006, JDH wrote:
> I am brand spanking new to matplotlib and using
> python for scientific computing (amazing product;
> can't believe I didn't know about it before.) and
> would appreciate some help in getting started. I
> apologise if it's something basic (couldn't find
> anything on google).
> python 2.4.3 matplotlib 0.87.4 numarray-1.5.2
> (Mandriva 2007 x64-64)
If you are using numarray, make sure your numerix setting in
matplotlibrc is
numerix : numarray
See http://matplotlib.sf.net/matplotlibrc
You can check your numerix setting by passing the --verbose-helpful
flag at the command line. You can also force numarray by passing
--numarray.
Eg
python myscript.py --verbose-helpful --numarray
if this doesn't work, please post a complete example
JDH