SystemModelPlot
SystemModelPlot[sim]
shows default plots from the SystemModelSimulationData object sim.
SystemModelPlot[sim,"id"]
shows model plot with identifier or name "id".
SystemModelPlot[sim,{"v1","v2",…}]
generates a plot of the variables vi in sim.
SystemModelPlot[{sim1,sim2,…},…]
plots variables from several simulations.
SystemModelPlot[model,…]
plots from a new simulation of "model".
Details and Options


- SystemModelPlot[…,{tmin,tmax}] plots from tmin to tmax.
- SystemModelPlot[{model,args},…] generates simulation data using SystemModelSimulate[model,args].
- The model can be a SystemModel object, a full model name string or a shortened model name accepted by SystemModel.
- SystemModelPlot[sim,{{"v1","p1",di},…},…] plots variables vi and sensitivity bounds when parameter pi varies 100di%. »
- Plot specifications detail the names and definitions available in simulations and models. Using sim["Plots"] and sim["PlotNames"] allows one to discover these.
- Possible values for "id" include:
-
"identifier" plot or subplot identifier "name" plot name "group/name" plot group and a plot name joined by "/" "group" plot group "variable" variable name - The first match for "id" will be the one used.
- SystemModelPlot has the same options as ListLinePlot, with the following additions and changes:
-
AxesLabel Automatic indicate units on axis Mesh None mesh points to draw on each line PlotLegends Automatic use variable names vi TargetUnits Automatic plot in display units from model - Events in a simulation are indicated in a plot with Mesh->"Events". »
- Possible settings for TargetUnits include:
-
"DisplayUnit" display units converted to common units "IndividualDisplayUnit" display units without conversion "Unit" base units converted to common units "IndividualUnit" base units without conversion unit explicit unit - "Unit" and "DisplayUnit" attempt to convert compatible quantities to a common unit.
- "DisplayUnit" and "IndividualDisplayUnit" convert to a unit specified in the model for plot purposes.
Examples
open allclose allBasic Examples (3)
Plot a default model plot from a model simulation:
Plot a model plot from a model simulation:
Choose one of the example models from the analog electrical domain:
Scope (22)
Variable Specification (2)
Time Specification (2)
Simulation Specification (4)
Simulate and plot a model from 0 to 5:
Different simulations can be compared in the same plot:
The tooltip is prepended with the simulation number:
Simulate a model with given initial values and plot the result:
Simulate an oscillating mass on a spring, with a damper acting on the spring:
Compare the oscillation of the mass with the different levels of damping:
Model Plots (4)
Presentation (10)
Multiple variables are automatically colored to be distinct:
Use PlotStyle to change the plot colors:
Filling can be used to specify fill regions and styles:
A legend is automatically shown for plots with multiple variables:
Turn off PlotLegends:
Events can be illustrated with Mesh points:
Use any expressions in plot legends:
The Tooltip and plot legends show which simulation the curve belongs to:
SystemModelPlot sets the option AxesLabel:
Override by setting AxesLabel:
Wrappers like Style can be used for styling variables:
Setting a Tooltip removes all automatic tooltips:
Plots are shown in display units defined in the model:
Use TargetUnits to choose a different unit:
Options (6)
PlotLegends (1)
Use variable names as PlotLegends:
TargetUnits (5)
Applications (3)
Properties & Relations (4)
SystemModelPlot is related to Plot:
Select the variables you want to plot:
Plot using SystemModelPlot:
Plot using Plot:
SystemModel can define a plot in a model:
Simulate and show the newly defined plot:
Use Plot to show variables of different magnitude in the same plot:
Retrieve results from a simulation:
Scale the rotational angle by a factor of 50 and show it with the rotational velocity:
Get the and
positions of the wheel axis:
Plot the position with a ParametricPlot:
Text
Wolfram Research (2018), SystemModelPlot, Wolfram Language function, https://reference.wolfram.com/language/ref/SystemModelPlot.html (updated 2020).
BibTeX
BibLaTeX
CMS
Wolfram Language. 2018. "SystemModelPlot." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/SystemModelPlot.html.
APA
Wolfram Language. (2018). SystemModelPlot. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SystemModelPlot.html