WOLFRAM SYSTEMMODELER LINK PACKAGE SYMBOL

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

DetailsDetails

  • 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:
  • AxesLabelAutomaticaxes labels
    PlotLegendsAutomaticlegends for curves
    PlotRangeAutomaticrange of values to include
    "Preferred"Falsewhether 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].

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Store a plot to a model:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Simulate and show the newly defined plot:

In[3]:=
Click for copyable input
Out[3]=

Store a parametric plot:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Simulate and show the newly defined plot:

In[3]:=
Click for copyable input
Out[3]=

Store a sensitivity plot:

In[1]:=
Click for copyable input

Plot the sensitivity of "integrator1.y" to the parameter "sine.freqHz", varying by 10%.

In[2]:=
Click for copyable input
Out[2]=

Simulate with sensitivity analysis against the frequency parameter:

In[3]:=
Click for copyable input
Out[3]=

Show the stored plot:

In[4]:=
Click for copyable input
Out[4]=