From: Kyle B. <kw...@ua...> - 2013-07-11 20:10:17
|
-----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----- |