Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 12:17 PM, Benjamin Root wrote: > > Actually, looking at Fabrice's code, you might be able to get it to be > slightly faster. Lines 39-41 should be protected by a "if i == 0" > statement because it only needs to be done once. Furthermore, you might > get some more improvem

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Benjamin Root
On Thu, Jul 5, 2012 at 1:55 PM, Gökhan Sever wrote: > And you might get back more memory if you didn't have to have all the data >> in memory at once, but that may or may not help you. The only other >> suggestion I can make is to attempt to eliminate the overhead in the inner >> loop. Essentia

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
> > >> 38 * 16 = 608 > 80 / 608 = 0.1316 seconds per plot > > At this point, I doubt you are going to get much more speed-ups. Glad to > be of help! > > Fabrice -- Good suggestion! I should have thought of that given how much > I use that technique in doing animation. > > Ben Root > > I am includ

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
> > And you might get back more memory if you didn't have to have all the data > in memory at once, but that may or may not help you. The only other > suggestion I can make is to attempt to eliminate the overhead in the inner > loop. Essentially, I would try making a single figure and a single >

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Benjamin Root
On Thu, Jul 5, 2012 at 1:45 PM, Gökhan Sever wrote: > > > On Thu, Jul 5, 2012 at 11:15 AM, Fabrice Silva wrote: > >> >> >> > At end of the outer loop, instead of closing the figure, you should >> > call "remove()" for each plot element you made. Essentially, as you >> > loop over the inner loop,

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 11:15 AM, Fabrice Silva wrote: > > > > At end of the outer loop, instead of closing the figure, you should > > call "remove()" for each plot element you made. Essentially, as you > > loop over the inner loop, save the output of the plot() call to a > > list, and then when d

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Fabrice Silva
> At end of the outer loop, instead of closing the figure, you should > call "remove()" for each plot element you made. Essentially, as you > loop over the inner loop, save the output of the plot() call to a > list, and then when done with those plots, pop each element of that > list and call "r

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Benjamin Root
On Thu, Jul 5, 2012 at 11:36 AM, Gökhan Sever wrote: > > > On Thu, Jul 5, 2012 at 8:45 AM, Gökhan Sever wrote: > >> On Thu, Jul 5, 2012 at 7:29 AM, Benjamin Root wrote: >> >>> >>> >>> On Wed, Jul 4, 2012 at 1:17 PM, Gökhan Sever wrote: >>> Hello, I am working on creating some dist

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 8:45 AM, Gökhan Sever wrote: > On Thu, Jul 5, 2012 at 7:29 AM, Benjamin Root wrote: > >> >> >> On Wed, Jul 4, 2012 at 1:17 PM, Gökhan Sever wrote: >> >>> Hello, >>> >>> I am working on creating some distribution plots to analyze cloud >>> droplet and drop features. You ca

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Gökhan Sever
On Thu, Jul 5, 2012 at 7:29 AM, Benjamin Root wrote: > > > On Wed, Jul 4, 2012 at 1:17 PM, Gökhan Sever wrote: > >> Hello, >> >> I am working on creating some distribution plots to analyze cloud droplet >> and drop features. You can see one such plot at >> http://atmos.uwyo.edu/~gsever/data/rf06

Re: [Matplotlib-users] Increasing font size in axis ticks

2012-07-05 Thread Tony Yu
On Thu, Jul 5, 2012 at 8:12 AM, David Kremer wrote: > Hello, > > I know how one can increase the font size in the xlabel and ylabel > fields. I use the methode presented in: > > > http://matplotlib.sourceforge.net/examples/pylab_examples/dannys_example.html > > But I don't know how to increase the

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Benjamin Root
On Wed, Jul 4, 2012 at 1:17 PM, Gökhan Sever wrote: > Hello, > > I am working on creating some distribution plots to analyze cloud droplet > and drop features. You can see one such plot at > http://atmos.uwyo.edu/~gsever/data/rf06_1second/rf06_belowcloud_SurfaceArea_1second.pdf > This file conta

[Matplotlib-users] Increasing font size in axis ticks

2012-07-05 Thread David Kremer
Hello, I know how one can increase the font size in the xlabel and ylabel fields. I use the methode presented in: http://matplotlib.sourceforge.net/examples/pylab_examples/dannys_example.html But I don't know how to increase the font size for the numbers labelling the xticks or the yticks, and

[Matplotlib-users] (no subject)

2012-07-05 Thread R. O'Gara
http://brandednewsletters.com/wp-admin/googlesave.html-- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Disc

Re: [Matplotlib-users] Accelerating PDF saved plots

2012-07-05 Thread Nicolas Rougier
Your files do not seem to be readable: http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed.py http://atmos.uwyo.edu/~gsever/data/matplotlib/test_speed.pdf Nicolas On Jul 4, 2012, at 19:17 , Gökhan Sever wrote: > Hello, > > I am working on creating some distribution plots to analyze cl