I am trying to replace the colorbar given by "hp.mollview" with a custom one. In particular I am interested in:
- Rotating the colorbar by 90 degrees (i.e. replacing the horizontal by a vertical one)
- Using two labels (left and right of the colorbar)
- Setting custom ticks
- Indicating that the range is set (via the "max" parameter) by setting "cmap.set_over".
Minimal amount of code:
import numpy as np
import healpy as hp
m = np.arange(hp.nside2npix(32))
hp.mollview(m)
Any help?
mollview
and then add a custom one withFigure.colorbar