completely filling a figure canvas

I need some help in saving effort to make a figure fill its canvas:

Is there a way to have subplots_adjust() automatically chose left,
right, bottom, top values so that everything that's been drawn tightly
fits the figure? Basically I'm looking for something similar to
bbox_inclues='tight' in savefig, except that I want the figure
dimensions to stay the same and have the contents of the figure adjust
to the figsize so that no space is wasted. Obviously, the hspace and
wspace in subplots_adjust would still have to be choseable by the user.

Any ideas?
-- Andreas.

Hi Andreas,

···

Le 14/02/2014 08:12, Andreas Hilboll a écrit :

Is there a way to have subplots_adjust() automatically chose left,
right, bottom, top values so that everything that's been drawn tightly
fits the figure?

What about plt.tight_layout() ?
(or fig.tight_layout )

best,
Pierre

Is there a way to have subplots_adjust() automatically chose left,
right, bottom, top values so that everything that's been drawn tightly
fits the figure?

What about plt.tight_layout() ?
(or fig.tight_layout )

Yes, thanks, Pierre!

Andreas.