Feed on
Posts
Comments

occasionally, long figure labels will cause portions of your pylab or matplotlib figure to hang off the page.  to change the size of the figure on the page, use the subplots_adjust command:

import pylab as pl
pl.plot()
pl.subplots_adjust(left=.17,bottom=.1,right=.7,top=.82)

UPDATE:

A much easier way of doing this:

fig.tight_layout()


Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.