On Mon, Jan 14, 2013 at 10:39 AM, Paul Hobson <pmhob...@gmail.com> 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.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to