Storing and Clearing Plot Data in the Model
To avoid recreating plot data in a model, the plot data can be stored in the model for a plot group using the following property:
model.result("pg1").set("savedatainmodel", true);
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.