*DefaultPostFLDZoneLegendFile()

Sets the default legend for the contour plot.

Syntax

*DefaultPostFLDZoneLegendFile (FileName)

Application

HyperView

Inputs

source_name
The full path to the file which contains zone color/label definitions.

Context

BeginGraphicDefaults()

Example

*DefaultPostFLDZoneLegendFile(“c:/tmp/fldzone.tcl”)

Comments

A *DefaultPostFLDZoneLegendFile() command may be placed inside a *BeginGraphicDefaults() block to set a custom FLD zone legend’s color band and labels. You can do an FLD zone plot, and in the FLD panel you can edit the legend and from that dialog the custom legend settings can be saved to a file.

Example custom legend setting file which was saved from the FLD panel:
proc LoadFLDZoneSettings {fld_handle legend_handle } { 
	$fld_handle SetCategoryColor 5 "255 0 0"
	$fld_handle SetCategoryLabel 5 "Failure edited again"
	$fld_handle SetCategoryColor 4 "204 204 204"
	$fld_handle SetCategoryLabel 4 "Marginal edited"
	$fld_handle SetCategoryColor 3 "0 255 0"
	$fld_handle SetCategoryLabel 3 "Safe"
	$fld_handle SetCategoryColor 2 "0 0 255"
	$fld_handle SetCategoryLabel 2 "Compression"
	$fld_handle SetCategoryColor 1 "129 5 65"
	$fld_handle SetCategoryLabel 1 "Loose Metal edited"
	$fld_handle SetCategoryColor 0 "255 0 255"
	$fld_handle SetCategoryLabel 0 "High Wrinkle Tendency"
}