python - APLpy error: 'Colorbar' object has no attribute 'set_axis_label_text' -


i'm trying write title colour bar in aplpy everytime following error:

attributeerror:'colorbar' object has no attribute 'set_axis_label_text' 

the code i'm using following:

import aplpy import matplotlib.pyplot plt fig = plt.figure() f1 = aplpy.fitsfigure('random.fits', figure=fig) f1.show_colorscale(stretch='arcsinh',cmap='greys',interpolation="bicubic") f1.add_colorbar() f1.colorbar.set_width(0.3) f1.colorbar.set_axis_label_text('title') plt.show() 

according read docs should work http://aplpy.readthedocs.org/en/v0.9.9/quick_reference.html

please update aplpy newest version. i've looked everywhere did not find on 0.9.6. method introduced in later release.

i think setting labels colorbars introduced in 0.9.9


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -