From: Sara H. <sar...@gm...> - 2008-12-10 22:18:28
|
I ran into a little problem when adding an axis span (both vertical and horizontal) to my plot. When I use the optional keyword arguments, I get an error message: import pylab pylab.axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/lib/python2.5/site-packages/matplotlib/pyplot.py", line 1572, in axhspan ret = gca().axhspan(*args, **kwargs) File "/lib/python2.5/site-packages/matplotlib/axes.py", line 2883, in axhspan self._process_unit_info( [xmin, xmax], [ymin, ymax], **kwargs ) TypeError: _process_unit_info() got an unexpected keyword argument 'alpha' Granted, I can get the results I want using the .set_xxx() methods, but my first method should have worked, right? I've never filed a bug for matplotlib before, so I figured I'd send out an email to the users-group first. Thanks, Sara |