Redraw speed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Redraw speed

Schindler Benjamin
Hi

In my program, I do a lot of axis changes and redraws / resizes. The redraw
speed of matplotlib seems very bad at best - is there anything I can do to
make it go faster?

Thanks
Benjamin Schindler


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Redraw speed

John Hunter-8
>>>>> "Schindler" == Schindler Benjamin <[hidden email]> writes:

    Schindler> Hi In my program, I do a lot of axis changes and
    Schindler> redraws / resizes. The redraw speed of matplotlib seems
    Schindler> very bad at best - is there anything I can do to make
    Schindler> it go faster?

Start here : http://matplotlib.sourceforge.net/faq.html#SLOW

The best thing you can do is create a sample application that you feel
is slow that can be run on our machines -- eg create a dummy data
server to replace for your real data server.  Then run your script
with some timing information to get an estimate of how fast the draw
is on your system (eg frames/second, see
examples/dynamic_image_gtkagg.py for one example which uses timing).

That way we can see if we are getting comparable performance numbers
and more importantly, may be able to suggest some improvements.

Generally the three things that make drawing slow are

 * creating too many objects (use collections instead).

 * using a backend which has a slow Agg->GUI widget transfer speed.  I
   just checked in Ken's patch which fixes this for WXAgg.

 * redrawing the entire canvas when you only need to redraw a selected
   artist or two.  See
   http://www.scipy.org/wikis/topical_software/Animations -- Ken's
   patch in CVS also added support for this kind of redrawing to
   WXAgg.

Hope this helps,
JDH


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Matplotlib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users