On Jun 29, 2007, at 2:27 AM, dominik baenninger wrote:
> Dear list,
>
> Since I am a plplot-newbie, this is probably a newbie question.
> Anyway,
> I am looking for the following feature: From a running program I would
> like to visualize in which way a vector changes during runtime, i.e.
> this vector is changed in a for-loop and I will plot this vector each
> time it is changed. Question: Is it possible to draw the vector with
> plplot to a screen-device (yes it is:) ) and conserve this plot during
> my code calculates the new values for the vector, and then draw the
> new
> graphic to the same screen-device?
Whether or not this works is going to depend on which screen-device
you are using, but with "xwin" you should be able to do this by
calling plflush() between each vector plotting operation.
init-plot()
loop {
calculate-new-vector
plot-vector
plflush
}
plend()
In the end you will have all the vectors displayed on the plot. If
you only want to display the latest vector you should call plclear()
before plot-vector.
Not all of the screen-device drivers support plflush() and/or plclear().
-Hazen
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general