HyperView User's Guide

Edit Category Legend

Edit Category Legend

Previous topic Next topic No expanding text in this topic  

Edit Category Legend

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

You can edit the contour legend in the Edit Legend dialog, which is accessed by clicking Edit Legend on the Contour panel.  Some of the options in this dialog will change whenever MaxLayer, MinLayer, or ExtremeLayer layers are selected in the panel.  Category legends display the names for different color bands, instead of values, for easy identification of plots from a contour.  This is relevant and less error prone when identifying a layer or ply that contributes to min/max/extreme.  The MinLayer/MaxLayer/ExtremeLayer plots from the Contour panel produce a contour with a Category legend as shown below:

edit_category_legend_hv

Edit Legend dialog

category_legend_contour_plot_example_hv

The following options are available in the dialog:

Legend

 

 

Type

Fixed Scale - displays an accumulation of all  contributing categories in the legend for the time steps HyperView has already processed.

Dynamic Scale - changes the legend with respect to the contributing categories at time step or simulation.

 

Position

Select the position of the legend within the HyperView window (Upper left, Upper right, Lower left, or Lower right).

Values and
colors

 

 

Numeric format

Scientific - displays the values in scientific format when queried on the entities of a category (Quick Query or Query Panel).

Engineering - displays the legend values in engineering format when queried on the entities of a category (Quick Query or Query Panel).

Fixed - displays the values in a fixed format when queried (Quick Query or Query Panel).

Auto - displays the queried values in the format specified in the preference file default setting.

Note: *DefineNumericFormat() can be added in the preferences_post.mvw file, to define the default setting for numerical presentation in the legend.  See Preference Files for more information on specifying defaults in a preference file.

 

Numeric
precision

You can increment the current value from 1 to 12 decimal points.  This setting only affects the queried values.

 

Max. levels
allowed

The upper limit on the number of color bands which are allowed to satisfy one color band per category.  The minimum number of layer bands you can display in a legend is 2; the maximum is 32.

The default setting is 12, however you can set this value to adjust the color bands in the graphics area to provide one color band per category (to the extent feasible) as the loadcases are switched or transient results are viewed.  Once the max level is exceeded and there are more contributing categories for a plot, the grouping of the categories will take place automatically.

If the number of contributing categories are less than the max levels allowed for any given plot, then only the few color bands pertaining to each contributing category will be displayed.

The grouping sequence for Max levels allowed in comparison to the contributing categories is as follows:

1.If the number of contributing categories is less than or equal to the max levels allowed, then each band will have a single category label.
2.If the number of contributing categories is greater than the max levels allowed, but not by twice or more, then the last color band will get a grouped category label range and the rest of the color bands will get single category label.
3.If the number of contributing categories is at least more than twice the number of bands, then each color band will get a range of equal width to the extent feasible.

 

Reverse

Reverses the legend values assigned to the contour bands.

 

Contributing
Categories

Displays the Category dialog which lists of all of the categories that are currently contributing to the selected contour.

category_dialog_hv

In the cases of a MinLayer, MaxLayer, or ExtremeLayer plot, all of the contributing layers/plies names are displayed.  This is helpful in identifying all of the layers/plies when category grouping occurs (due to a lesser number of color bands than the contributing plies).

Header

Displays the legend header.  To remove the header, deactivate the check box.  To enter a new header, highlight the existing text, type in a new header and click Apply.

Click the font button, font_button, to change the font style and size.

Footer

Displays the legend footer.  To remove the footer, deactivate the check box.  To enter a new footer, highlight the existing text, type in a new header and click Apply.

Click the font button, font_button, to change the font style and size.

Title

Displays the title of the legend.  The title reflects the settings used to generate the contour and cannot be changed.  Click the font button, font_button, to change the font style and size.

Values

The ability to change the legend colors (using the color palette) and specify user-defined values is not supported in the Category version of the dialog.  However, the category names are decided based on the data types plotted.  In case of MaxLayer/MinLayer/ExtremeLayer, the contributing layer or ply names are automatically shown next to the color bands.  The grouping of the categories for each color band happens when the contributing categories are more than the Max. levels allowed value (set above).


Transparency

Displays the legend with a transparent background.  Deselect the option to display the legend with the background color which is currently displayed in the color box (located to the right of the Transparency option).


Fill color

Displays the legend with a color background (if the Transparency option is deselected).  To select a color for the legend background:  click the color box to display the color palette, select a color, and click OK.

The legend is displayed on the right side of the dialog, allowing you to preview changes as you make them.

Default

Resets the default legend properties.

Apply

Click Apply to apply the changes made to the legend.

OK

Click OK to apply the changes and exit the Edit Legend dialog.

Cancel

Click Cancel to disregard changes and exit the dialog.

 

See Also:

List of Tcl/Tk poILegend Class Commands

Using Scalable Fonts under Linux to Render Text