Nat February 2016

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

I'm trying to write a title for a colour bar in APLpy but everytime I do I get the following error:

AttributeError:'Colorbar' object has no attribute 'set_axis_label_text'

The code I'm using is the following:

import aplpy
import matplotlib.pyplot as plt
fig = plt.figure()
f1 = aplpy.FITSFigure('random.fits', figure=fig)

According to read the docs this should work


MSeifert February 2016

Please update APLpy to the newest version. I've looked everywhere but I did not even find anything on 0.9.6. So probably the method was introduced in a later release.

I think setting labels for colorbars was introduced in 0.9.9

Post Status

Asked in February 2016
Viewed 1,273 times
Voted 10
Answered 1 times


Leave an answer