On Saturday, January 19, 2008 at 13:53:12 (+0100) Torquil Macdonald Sørensen writes: > The effect of using double-buffering with the xwin driver was that it did > not > plot anything until all the for-loop iterations were finished. Then it > plotted > just the last frame. Using the TK driver gives the same result. It also only > plots the last frame when using -db.
The xwin driver only plots at end of page if double buffering is on (i.e. it plots to the pixmap and then when done it pops it to the display) so you need to do an end of page at the end of each plot. It's safest in my book to always use plbop/pleop for individual plots, i.e.: plbop(); .. plot here .. pleop(); Indeed, if you change the plot lines in your for loop to: plbop(); plbox("bcinst", 0, 0, "bcinst", 0, 0); plline(2, x, y); pleop(); and then invoke with both the -db and -np option, it animates cleanly with the xwin driver. -- Maurice LeBrun ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general