In addition to DrS's suggestions, I can add (as author of Plotchart)
that Plotchart itself
does not keep the data in memory - the application is responsible for
that.
A source of memory consumption could be the canvas. To deal with that:
- the "plot" method of an xy-plot (and similarly for other types)
creates individual
canvas items. These might accumulate.
- the "plotlist" method on the other hand creates a limited number of
canvas items,
but these items may have a lot of coordinates. The memory
consumption will be a lot
smaller than for the "plot" method.
- the data items have several labels - both "data" and the data series
they belong to.
You can use that to remove items when they are no longer needed
without redrawing
the plot/chart. Consult the documentation for details.
Regards,
Arjen