updateLegendSettings
Overview
This utility is used to update the legend settings such as number of segments, format and precision of result value and its color and interval value.
Syntax
ResValue (Optional) = [];
Color (Optional) = [];
simlab.updateLegendSettings("Segment Number", "Number Format", "Precision", "ResValue", "Color","Lock Legend Values");
Use Case
- It can be used to modify the legend with the user defined settings as below:
- Number of segment count
- Result value display formats like float or exponential and the floating-point precision
- Each Segment result Value
- Each Segment Color
- Lock the legend values. If we switch to the other loadcases/simulations, the locked legend values are preserved.
- User can update the legend settings and capture them as an image for result comparison
Utility Input/output

Note: Segment Result values, color and lock legend are optional, then the
Legend will be updated with the model min, max and default colors.
Sample

Note: Sample Script