I think I've found the issue with clearing the page when using plreplot. Basically the issue is that the driver bop function is not being called, because at the point of replaying the buffer, the stream is already at the beginning of page. This means that the driver does not clear the page.
There is a line in plFlushBuffer() which calls plP_eop() to avoid exactly this behaviour, however it is commented out. Using git blame I found the commit that commented the line out commit 5867959e87e64e08ed2ed57bc66a3cfa6e22450f Author: Jim Dishaw <j...@dishaw.org> Date: Mon Jun 15 12:10:04 2015 -0400 Fix to the multiple keypress bug on page advance - The "wait for user input" is not part of an EOP. -- A new function plP_wait() was created -- plP_wait() calls were added next to plP_eop() calls to generate a wait (if specified by nopause) after an EOP event - The plot buffer was modified to insert an EOP into the buffer -- No wait is inserted into the plot buffer because the plot buffer only regenerates plots - A new entry was added to the PLDispatchTable for the wait function -- The table initialization sets all function pointers to NULL via a memset -- If a driver does not specify a wait function, either it is not needed (e.g. the ps driver) or it is part of the EOP handler (legacy behavior) - The following drivers were modified to support the new implementation: cairo, qt, tkwin, and xwin. The wingcc update will be in a seperate fix. It's not entirely clear from the message, however it looks to me like this line was commented out to avoid odd behaviour when nopause was specified, but then Jim has fixed that issue in a different way and then perhaps forgotten to uncomment this line??? Jim, I know it's a long time ago when we were fixing the buffer, I don't suppose you have any memories of this? I have some vague ones but nothing concrete. Basically I'd like to put that line back for the upcoming release because I have code that is using plreplot that is currently broken because of this issue. I don't know what anyone thinks of that or what anyone thinks is an appropriate set of tests to do to ensure there isn't any odd side effects. Phil ------------------------------------------------------------------------------ Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi processor-based developer platforms. With one year of Intel Parallel Studio XE. Training and support from Colfax. Order your platform today. http://sdm.link/xeonphi _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel