which saves the plot data in the model for the plot group pg1. It can be useful for data that takes a long time to recompute but is not very large (such as some 1D plots, for example).
model.result().clearStoredPlotData() removes all stored plot data from the model.