Kyle

Since no one else seems to have answered, you have 2 options if I've understood 
what you want :

1 the straightforward way is to clear the plot window by advancing to a new 
page ( pladv() ) and then redraw the plot - axes etc - with the new point. This 
may seem tedious and slow but modern computers do it fine. We do time 
animations of quite complex plots this way and have to slow them down.

2. Before you plot the next point, change the foreground colour to be the same 
as the background (black I presume in your case) and then replot your first 
point. This will render it invisible. Then change the colour back to the 
original foreground one. This could be less satisfactory in a 3d plot because 
your points may plot on top of an axis so when you obliterate the point you 
will also obliterate a piece of the axis.

Steve

-----------
Steve Schwartz
Space and Atmospheric Physics
Imperial College London
Tel 020 7594 7660

On 11 Jul 2013, at 21:11, "Kyle Bentley" <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> 
> I've just started looking into using plplot for part of a simulation
> I'm writing.  I'm trying to (for now) make a 3D scatter plot that is
> updated in ~real time.  I'm using c++ as the programing language and
> what I've managed to do so far is:
> 
> 1. Instantiate an object of the plstream class
> 2. Select the xwin driver using plsdev
> 3. call init(), env(), w3d(), box3() to setup the window
> 4. create 3 doubles, x y and z
> 5. inside a for loop, ( alter x y z and call poin3() ) to update the
> plot.
> 
> This has worked well so far, but I'm having trouble finding a way to
> remove the previously plotted points.  I would like to be able to just
> see one point, then on the redraw, see it move to another location.
> What I see now is one point, then two, then three, ect....
> 
> Can someone offer some advice on how to accomplish this?  Also, if I'm
> using the wrong tool, or if I'm using an incorrect method of the
> plstream class I'd love to be corrected!
> 
> Thanks,
> 
> Kyle Bentley
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Icedove - http://www.enigmail.net/
> 
> iQEcBAEBAgAGBQJR3xFcAAoJEKZ75usGhR84JMoH/3vxnMUA2rFaq8y0ko5i/eLY
> mikgxArbcA3i4ELrvi6zni41wKXkR9Z+ptOYbVyFO7bP9bLWGsVI4z3YcQTmOcDA
> ymFlQJ1Rqgy3JdTvuj8Zn/hCiw6gcFYvwcA0MlrI/pVC7ppJ+Bhfp2stjuYqmG44
> 4kbdUqNxUKKSX48d5mjWAecTyCMD+A6Q+0J0m1iE4zSw5ZB7ajivihPlNFPDfqh7
> S5z33o+hGBJZ5wtBTW8NpVH5Tsyik0RF6xTkH6VxqJQYqfOO7xoLkKr4diqiFC9O
> 3m/dxNhK54xnlBrfbvw1duTTuCBNTrIXNhKGtwk0LNhMkvxICykMc4X4CqITYQA=
> =O+wW
> -----END PGP SIGNATURE-----
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Plplot-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-general

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to