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 way

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 A

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 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 figure > i

[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?

[Matplotlib-users] any way of having something like pcolorfast results with log scale ?

2012-06-25 Thread julien tayon
Hello, I made a crude sonogram https://gist.github.com/2983547 with the note names instead of the frequency. But, It really angers me not to be able to have a log scale for the frequency. Does any well known workaround exists? Is there an easy way to grosso modo do : x = time, y = frequency, z=am

Re: [Matplotlib-users] Suggestion: "show figures with default backend"

2012-06-25 Thread Christoph Groth
Christoph Groth writes: > show_figures([Figure().add_subplot(1,1,1).plot(range(10)), > Figure().add_subplot(1,1,1).plot([x*x for x in range(10)])]) This wouldn't work of course, it should be rather f1 = Figure() f1.add_subplot(1, 1, 1).plot(range(10)) f2 = Figure() f2.add_subplot(1

[Matplotlib-users] Suggestion: "show figures with default backend"

2012-06-25 Thread Christoph Groth
Dear matplotlib developers, I prefer to use matplotlib in my scripts without its state-machine wrapper and it works mostly nicely. One thing which is missing currently is a standard way to display a bunch of figures using the default backend. What I have to do now is: from matplotlib.pyplot imp

Re: [Matplotlib-users] tornado chart

2012-06-25 Thread Nicolas Rougier
I did it once and posted it to the list but never found the time to add it to the official gallery (my bad): http://www.loria.fr/~rougier/coding/gallery/showcase/showcase-3-large.png http://www.loria.fr/~rougier/coding/gallery/ Nicolas On Jun 23, 2012, at 5:36 , Benjamin Root wrote: >