Legend Plot Items

The following are properties of Plot legend items. For a description of how a particular control is used, refer to Property Controls.

Table D-74: Plot Legend Properties 

Interface:
Property Name
Control Type: Values
API:
Property Identifier
API:
Allowed Values

Text

String: Text that labels the plot object in the legend.

ITEM_TEXT

String

Text color

Color: Color to be used for the legend text. Click to choose from the default color palette, or specify RGB values. Default = [0,0,0] (black)

TEXT_COLOR

3D integer array of the form:

[R, G, B]

Each color value may range from 0 to 255.

Text font

String List: Font used for legend text. Select a font from the list. Choose from these values:

  • Helvetica
  • Courier
  • Times
  • Symbol
  • Hershey 3 Simplex

In addition to the above standard fonts, you will also have available all of the other Hershey fonts as well as any TrueType fonts available to IDL.

Default = Helvetica

FONT_INDEX

The following values are valid for all platforms:

0 (Helvetica--default)

1 (Courier)

2 (Times)

3 (Symbol)

4 (Hershey 3 Simplex)

There may be other Hershey and TrueType fonts available, but the list values are system-dependent.

Text style

String List: Style used for legend text. Select a style from the list. Choose from these values:

  • Normal
  • Bold
  • Italic
  • Bold italic

Default = Normal

FONT_STYLE

0 (Normal--default)

1 (Bold)

2 (Italic)

3 (Bold italic)

Text font size

Number: Font size in points for the legend text. Edit the number to change the size. Default = 12

FONT_SIZE

Integer