On 2007-01-27 10:24-0500 Mark Wilson wrote:

>
> Hello,
>
> We need to update a graph at about a 5Hz rate, and the
> plplot canvas doesn't seem able to keep up with that
> (takes 200 to 300 ms to update graph). I'm wondering if
> this is something to be expected, or if we're doing
> something wrong (I don't expect anyone to tell me what I
> may or may not be doing wrong, I'm just looking for
> general info on performance).

What computer language interface and PLplot device are you using?

If you need efficiency, then use the C interface directly.  Some of our
other compiled interfaces (f77, f95, C++, Java) are pretty efficient as
well, but our scripting language interfaces (Python/Numeric, Perl/PDL, Tcl),
although great for quick prototyping, are noticeably slower if that is a
concern as in your case.

Also, your efficiency will depend on which device you are using. Some (e.g.,
-dev psc) are extremely fast because they do not depend on any external
libraries, while others are slower (e.g., -dev psttfc) because they use
external libraries to produce really nice looking results which takes extra
time. Also, you mentioned a canvas which I believe narrows down the device
you are currently using to one of the GUI device choices such as -dev tk,
-dev wxwidgets, or -dev gcw. Such interactive GUI devices are much slower in
general than file devices. Do you need that GUI capability?  If all you are
doing is making a movie with no interaction by the user, than I have heard
of one PLplot application (I cannot recall the details) that combined -dev
gif (or possibly -dev jpeg?) results together to make a movie.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the Yorick front-end to PLplot (yplot.sf.net); the
Loads of Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to