Create, Edit, and Assign Custom Legends
Use the Legend entity to create, edit and assign custom legends to any contour, vector and tensor or marker plot. Legends can be numeric, or category based. It can be copied or saved to an external file and imported for re-use.
-
To create a legend:
- Alternate methods to create a legend
-
- Right-click on a legend in the modeling window and select Save Legend to create a new legend. This legend is automatically linked to the displayed plot.
- Right-click on the Legend folder to import an .xml file containing a legend definition. If a legend with the same name already exists, the imported legend is renamed with the prefix importedlegend_.
-
To edit a legend:
Note:
- Format and Precision are supported only for numeric legends.
- Range can be set to automatic, or user-defined.
- If automatic, the values of the legend are not editable and are directly obtained from the linked plot definition. If user-defined, values can be changed using the values table or by clicking directly on a value in the graphics legend.
- Due to current graphics legend limitations, certain value inputs may not be accepted. It is thus recommended to enter values in a strictly descending or ascending order.
- If custom values are entered and then the number of levels are changed, values get reset. It is thus recommended to first set the number of levels and then input values.
- Color Scheme can be Divergent, Rainbow, or User-defined. If User-defined, change the color of any level by clicking directly on the color in the graphics legend.
- Existing plots can also be displayed or cleared using the plot icons in the Results Browser.
- Editing the definition for a displayed plot automatically updates the graphics. For large models, editing the plot definition may be faster if the plot is not displayed.
-
To assign a legend: