Create, Edit and Assign Custom Legends
Use the Legend entity to create, edit and assign custom legends to any contour, vector and tensor 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:
- Right-click in open space in the Results Browser.
- Select the desired configuration from Create Legend > Contour, Vector, or Tensor.
-
For Vector/Tensor, select the desired type: numeric or category.
The category legend is used to display vector or tensor plots by direction.Note: Contour legends can only be numeric.
- Alternate methods to create a legend
-
- Right-click on a legend in the graphics 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:
- Use the Entity Editor to edit the legend properties such as format, precision, range, color scheme, and position.
-
Alternatively, use the graphics legend context menu to change some of
the legend properties.
This automatically updates the linked legend entity.
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:
- Click on a plot definition in the Results Browser to access the Entity Editor, or, open the Contour/Vector/Tensor tool, pick a plot definition from the drop-down menu on the guide bar, then click .
- Check Custom Legend.
-
Click Legends and select from existing legends
using IntelliSearch or the Advanced Selection
dialog.
The list shows only legends of the same config.
- To remove a legend and revert to default legend, simply uncheck Custom Legend.