|
From: Bala s. <bal...@gm...> - 2010-07-13 17:12:27
|
Friends, I tried to incorporate an example script for colorbar given in the following link into my code. http://matplotlib.sourceforge.net/examples/api/colorbar_only.html When i run the program, i get the following error. I didnt use set_ylabel option in my code. I am not getting why this error appears. Kindly help me by writting why this error comes. I have attached the code with the mail. Thanks, Bala Traceback (most recent call last): File "./test.py", line 27, in <module> cb = mpl.colorbar.ColorbarBase(map, cmap=cmap,norm=norm,boundaries=[0]+bound+[9],extend='both',ticks=boun File "/usr/lib/python2.5/site-packages/matplotlib/colorbar.py", line 221, in __init__ self.set_label('') File "/usr/lib/python2.5/site-packages/matplotlib/colorbar.py", line 302, in set_label self._set_label() File "/usr/lib/python2.5/site-packages/matplotlib/colorbar.py", line 292, in _set_label self.ax.set_ylabel(self._label, **self._labelkw) AttributeError: 'AxesImage' object has no attribute 'set_ylabel' |