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 (traces) that are added to the plot and shown.
- Select a variable (shown by its Modelica path) to set variable-specific plot styles
- 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.
And you can also customize the order of the variables, e.g. to configure a stacked area chart. The custom order is saved. To change the order, just select the variable and move it up or down.
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