The errorbar_limits.py demo is failing on my machine:
Traceback (most recent call last):
File "errorbar_limits.py", line 13, in <module>
P.errorbar(x,y,yerr=0.1,capsize=3)
File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608,
in errorbar
ret = gca().errorbar(*args, **kwargs)
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3735, in
errorbar
caplines.extend( self.plot(x, lower, 'k_', **plot_kw) )
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 2634, in
plot
for line in self._get_lines(*args, **kwargs):
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 403, in
_grab_next_args
for seg in self._plot_3_args(remaining, **kwargs):
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 349, in
_plot_3_args
x, y, multicol = self._xy_from_xy(x, y)
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 244, in
_xy_from_xy
assert nrx == nry, 'Dimensions of x and y are incompatible'
AssertionError: Dimensions of x and y are incompatible
It looks like the API has changed and does not allow scalar arguments for the
errors. I tried setting yerr=ones(len(y))*0.1, and got a different error:
Traceback (most recent call last):
File "errorbar_limits.py", line 18, in <module>
P.errorbar(x,y,yerr=yerr, uplims=True)
File "/usr/lib64/python2.5/site-packages/matplotlib/pyplot.py", line 1608,
in errorbar
ret = gca().errorbar(*args, **kwargs)
File "/usr/lib64/python2.5/site-packages/matplotlib/axes.py", line 3738, in
errorbar
caplines.extend( self.plot(x[uplims], upper[uplims], ls='None',
marker=mlines.CARETUP, **plot_kw) )
TypeError: only integer arrays with one element can be converted to an index
Maybe the patch commited on September 3 needs to be revisited.
Darren