Configure Plots in the Analysis View🔗
You can configure the plots to make it easier to analyze results, e.g. to better distinguish between different variables in the same diagram or to better present results to others.
Configure a plot🔗
You can configure plots by ...
- adding or deleting variables
- setting styling for the traces
- setting options and general styling for the entire plot
- adding a unique title
- Select a plot by clicking on the top bar in the plot panel (becomes visible when you hover over the plot panel).
- Open the right sidebar.
If a plot is selected the sidebar shows context-sensitive details/options for the selected plot.
Variables Browser🔗
In the VARIABLES browser, you see a list of variables that are added to the plot and shown.
- Select a Variable:
- Click on a variable name (fully qualified name is shown) to set variable-specific plot styles and options.
- Plot Defaults:
- Select "Plot defaults" to set plot styles that apply to all variables, and also to set plot-specific layout configurations (like the plot title).
- The blue dot indicates if a variable trace is modified against the plot defaults.
Furthermore, this browser is the tool where you can:
-
Delete Variables from a Plot:
- Hover over the variable you want to delete and click on the bin icon.
-
Customize the Order of Variables:
- Change the order of variables by selecting a variable and moving it up or down.
- Useful for configuring a stacked area chart.
- The custom order is saved automatically.
Renaming Variables and Toggling Units🔗
Plots can be made easier to understand by specifying alias names for the variables. The alias will be shown in the legend display instead of the model variable name. Alias names may contain spaces and any other characters. Additionally, you can choose whether to display the unit of each variable in the legend.
Here's how to do it:
-
Select the Variable to Rename:
- In the VARIABLES browser, click on the variable you wish to rename.Renaming a Variable in the Variables Browser -
Rename the Variable:
- In the variable details pane, locate the Name field.
- Enter the new alias you want to display in the legend.
- Note: This rename affects only the legend display and does not change the variable's original name in the simulation data. -
Reset to Original Name:
- If you wish to revert to the original variable name, click on the Reset Icon next to the name field.- This action restores the original Modelica path as the display name in the legend.
-
Toggle Display of Units:
- Use the Show Unit toggle switch to display or hide the unit of the variable in the legend.- Turning units off reduces the size of the legend which may improve plot readability.
- Turning it on provides additional context by showing units alongside variable names.
Add a variable to a plot🔗
If you have a plot selected, deselect it first by clicking on the top bar. To add another variable, we need the CALCULATED VALUES tree.
- Go to the CALCULATED VALUES tree in the right sidebar.
- Select the variable you want to add from there.
- Drag and drop the variable to your desired target plot.
Note
There are 2 dropzones on a plot. Use the large dropzone to add a variable as a dependent variable (Y axis).
Alternatively, you can also drop on the X axis, but then it will not appear in the VARIABLES browser (cf. Analyze results with plots).
Delete a variable from a plot🔗
- Select a plot and go to the VARIABLES browser.
- Select or hover over the variable you want to delete (see figure above)
- Click on the bin icon
Note
There must be at least one variable in a plot! You cannot delete the last variable.
Plot styles🔗
Depending on the plot type, there are different PLOT STYLEs offered.
Set plot styles are saved automatically.
Note
Variable-specific plot styles overwrite "plot defaults"!
Layout configuration🔗
The LAYOUT CONFIGURATION can only be set if "Plot defaults" is selected in the VARIABLES browser.
All layout configurations are saved automatically.
Note
You can always enter a plot "Title", to give the plot a unique and meaningful title. The text is saved automatically.
To display the title in the plot, please make sure "Show plot titles" in GENERAL SETTINGS is enabled.
Related articles🔗
Analysis View | Create, arrange, and delete plots | Analyze results with plots | General settings