Legend Objects

Legend objects represent each legend in an Image Template file. Though there is usually only one legend, there can be any number of legend objects in an Image Template file. Each legend is associated with a graph or map. Each legend object has its own name, data, and formatting options.

Note: The examples in this section assume that the legend object has the default name of legend. However, be aware that legend objects are not always named legend. In such cases, use the object name in place of legend.

Legend objects have the following methods:

method

 

hide

Syntax

 

legend.hide()

Description

 

Hides the legend object.

 

method

 

show

Syntax

 

legend.show()

Description

 

Makes the legend object visible.

By default, all objects are visible. Use this command to make the legend object visible again after using the legend.hide command.