From: Robert P. <rob...@jk...> - 2009-04-03 13:56:20
|
Hi Werner, you wrote: >> Since I now have to update a plot very often and over long time, >> let me ask whether the plot buffer can be cleared to avoid the >> memory hogging, short of deleting/recreating the wxPLplotwindow. > > [...] unfortunately the fix for this is not that easy. If you have > only one subwindow, then it would be ok to clear the buffer if > pladv() is called. But this is not true if you have 2 or more > subwindows. Clearing one subwindow with e.g. pladv(1) doesn't mean > that you want to clear the other subwindows, what would happen if you > clear the buffer. This might be no problem for your case, but we > would break the library for all who use subwindows. The fix I have in > mind is to split the buffers depending in what subwindow we plot. > [...] it will need some time (say weeks to months) [...] I understand. Would it be possible to introduce a "plclearall" function for my use case, which clears all subwindows? This would certainly be much easier. --Robert |