[Matplotlib-users] Maintain A4 plot size with arbitrary number of subplots

2012-06-25 Thread mogliii
Hi, In my script a variable number of graphs is generated. I want to place them in one column with arbitrary number of rows onto an A4 canvas (for pdf export). Unfortunately the figsize directive seems to have no effect. The figure is always 8x6 inch. Which code do I have to use in this case?

Re: [Matplotlib-users] Maintain A4 plot size with arbitrary number of subplots

2012-06-25 Thread Benjamin Root
On Mon, Jun 25, 2012 at 1:12 PM, mogliii mogl...@gmx.net wrote: Hi, In my script a variable number of graphs is generated. I want to place them in one column with arbitrary number of rows onto an A4 canvas (for pdf export). Unfortunately the figsize directive seems to have no effect. The

Re: [Matplotlib-users] Maintain A4 plot size with arbitrary number of subplots

2012-06-25 Thread Mogliii
On 25/06/12 18:30, Benjamin Root wrote: Your call to plt.subplots is creating a new figure object, which never gets the figsize parameter (only the old figure object has that set). Cheers! Ben Root Hi, indeed you are right. I added f.set_size_inches(fig_size) and it works Also I had a

Re: [Matplotlib-users] Maintain A4 plot size with arbitrary number of subplots

2012-06-25 Thread Mogliii
Even better: f, axarr = plt.subplots(allplots, 1, figsize = fig_size) Its always difficult to predict which **kwargs could/would be valid... -- Live Security Virtual Conference Exclusive live event will cover all the