|
From: Alejandro W. <ale...@gm...> - 2013-01-14 19:37:16
|
On Mon, Jan 14, 2013 at 10:39 AM, Paul Hobson <pmh...@gm...> wrote: > Does the call to tight_layout() fig your problem? Actually, I just realized that is not tight_layout() what fixed my problem, but using ax.matshow instead of plt.matshow. The following code produces an unclipped colorbar: A = np.random.rand(100,10) / 100 fig, ax = plt.subplots() img = ax.matshow(A) plt.colorbar(img) plt.show() Alejandro. |