When plotting a colorbar, the top label (I guess this would be called the offset) is mis-centred. This didn't use to happen, I have examples of old code where it was centred above the colorbar, but I have no clue what has changed.
Example:
import numpy as np
import matplotlib.pyplot as plt
z = np.random.random((10,10))
fig, ax = plt.subplots()
im = ax.imshow(z)
cb = fig.colorbar(im)
cb.formatter.set_powerlimits((0, 0))
cb.update_ticks()
plt.show()
Gives this:
As an example of how it used to look (taken from one of my old papers, so different data etc.)
Using the most recent anaconda python 2.7, on MacOSX, mpl version 1.5.0
Edit: I should also note, tight_layout() does not improve this either, though it is missing from the working example.
jet
should not be removed as colormap, and still has its uses: I can stare at it endlessly and slowly float away into some form of hyperspace. - user707650