I am plotting several FITS images along with a colorbar alongside them. I am mainly using Aplpy to plot the images, including the colorbar. As far as I understand, Aplpy does use/rely on matplotlib for its plotting mechanisms, so if there is a way to do what I want in either Aplpy or Matplotlib I think that should work.
The default units of the images are in Jy (an astronomical unit). But the values are all quite small, to where the max is generally 0.01 Jy. When I show a colorbar, the tick labels are in corresponding units and have lots of zeros and take up too much room.
Is there any way I can have the colorbar's units display as mJy (1/1000 of a Jy)?
For example, the ticks are currently: 0.000, 0.002, 0.004, ... I want them to be: 0, 2, 4, ...
The solution could be to either scale the FITS image itself, or adjust the colorbar in some way. Either way, I don't know how to do either...
Thanks in advance.
I guess there are a lot of options. One of them would be to supply a
FuncFormatter
to the colorbar,Now I don't know what Aplpy returns, and the question doesn't show any code, so I cannot provide a working solution for that specific case.