Re: [matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-29 Thread Nicolas Rougier
> > Nicolas, > > I would like to add to Mike's comments by making it clear why I am interested > in having OpenGL for matplotlib. It is not for speed. The last time I > checked, a good portion of time is actually spent on the axis tickers and > automatic limits. So, if speed is your goal, t

Re: [matplotlib-devel] Matplotlib-devel Digest, Vol 62, Issue 13

2011-07-29 Thread David Kaplan
Hi, I will be on vacation with limited email from July 14 to August 7, 2011. Bonjour, Je serai en conge du 14 juillet jusqu'au 7 aout, 2011. -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we

Re: [matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-29 Thread Nicolas Rougier
I'm sorry to have used the term "useless" since it was not what I meant. In fact, after profiling the simple draw example, I realized there were a lot of necessary operations that were not quite visible from my "external" point of view. I was just thinking "why the hell is it so slow to draw s

Re: [matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-29 Thread Benjamin Root
On Fri, Jul 29, 2011 at 11:05 AM, Michael Droettboom wrote: > ** > Nicolas, > > I'm not sure how you've reached your conclusion. > > The 21,000 calls to Line2D.draw (i.e. 21 per frame) are easily explained > since each grid line (or tick) is in fact a line. > > The 10,000 calls to Tick.draw (i.e.

Re: [matplotlib-devel] Matplotlib-devel Digest, Vol 62, Issue 12

2011-07-29 Thread David Kaplan
Hi, I will be on vacation with limited email from July 14 to August 7, 2011. Bonjour, Je serai en conge du 14 juillet jusqu'au 7 aout, 2011. -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we

Re: [matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-29 Thread Michael Droettboom
Nicolas, I'm not sure how you've reached your conclusion. The 21,000 calls to Line2D.draw (i.e. 21 per frame) are easily explained since each grid line (or tick) is in fact a line. The 10,000 calls to Tick.draw (i.e. 10 per frame) are because there are 10 tick labels. likewise for Text.dra

Re: [matplotlib-devel] Matplotlib-devel Digest, Vol 62, Issue 11

2011-07-29 Thread David Kaplan
Hi, I will be on vacation with limited email from July 14 to August 7, 2011. Bonjour, Je serai en conge du 14 juillet jusqu'au 7 aout, 2011. -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we

Re: [matplotlib-devel] Experiments and questions / OpenGL backend

2011-07-29 Thread Nicolas Rougier
I just did it using the regular python profiler (and a pyglet backend because glut cannot be easily profiled). Here are some results for exactly 1000 frames displayed: > python -m cProfile -s cumulative test_backend_pyglet.py 7723453 function calls (7596399 primitive calls) in 16.583