I need to redraw plots in the created subpages.
I perform clear() and repeat drawing.
The common-sense suggests that clear() should not only erase the screen, but also release the memory occupied by the related variables. But it seems that occupied memory is not released and increases with every redrawing.
Please refer to the simple code based on Example #1 in the attached file.
The version of PlPlot is 5.13
Windows
MS VS++ 16
Finally, after analysis of the sources I realized that bop() should be used to go to the beginning of the buffer.
The question is closed.
Last edit: Dmitry 2022-04-05