WSMSetPlot
WSMSetPlot["mmodel","name",{"v1","v2",…}]
stores a plot of variables "vi" as "name" in the model "mmodel".
WSMSetPlot["mmodel","name",{{"v1,x","v1,y"},…}]
stores a parametric plot with x and y coordinates vi,x and vi,y as a function of time.
WSMSetPlot["mmodel","name",…,{tmin,tmax}]
stores a plot for the time interval tmin<t<tmax.
WSMSetPlot["mmodel","oldname""newname"]
renames the plot from oldname to newname
Details and Options
- A stored plot can be shown with WSMPlot["mmodel","name"].
- WSMSetPlot[…,{{"v1", "p1", d1},…}] stores variables vi with sensitivity bounds when parameter pi varies 100 di %.
- The shortest unique model name mmodel can be used where WSMNames["*.mmodel"] gives a unique match.
- Using "group/plot" as a name puts plot in group.
- The following options can be given:
-
AxesLabel Automatic axes labels PlotLegends Automatic legends for curves PlotRange Automatic range of values to include "Preferred" False whether the plot is a preferred one - AxesLabel can be Automatic, None, a string label for the y axis or {"xlabel","ylabel"}.
- Possible PlotLegends are Automatic, None or a list of one string per variable in the plot.
- PlotRange is Automatic, {ymin,ymax} or y, which is interpreted as {-y,y}.
- If "Preferred" is True, it will be included when plotting preferred plots with WSMPlot[sim].
Examples
open allclose allBasic Examples (4)
Scope (5)
Options (7)
AxesLabel (2)
PlotLegends (2)
PlotRange (2)
"Preferred" (1)
Preferred plots are used in WSMPlot if no plot name or variables are given:
Properties & Relations (4)
Giving the same name as an existing plot overwrites the plot:
List the names of saved plots using WSMModelData:
The base model has a saved plot:
Create a model that extends baseModel:
The newly created model inherits the base plot:
The new model does not have any local plots defined:
Delete plots using WSMClearPlot:
Store a plot that will then be deleted:
WSMClearPlot removes the plot from the model: