Hello,
I am having a problem with the colorbar when plotting a constant field.
The small script below will generate a plot that is a solid blue image with a
solid blue colorbar. However
the label on the colorbar is garbage. There is no way to read the label to
determine what value the image represents.
Has anyone else had a similar problem? How do I fix it?
I am running matplotlib version 1.0.1 installed from macports -- py26-matplotlib
@1.0.1_3+tkinter
Thanks.
···
---
import matplotlib.pyplot as plt
import numpy as np
C = np.matrix('1 1 1; 1 1 1; 1 1 1')
plt.imshow(C)
plt.colorbar()
plt.show()