Previous Page | Next Page

The SGPLOT Procedure

INSET Statement


Adds a text box inside of the axes of the plot.

Syntax

INSET "text-string-1" <... "text-string-n"></ option(s)>;
INSET (label-list) </ option(s)>;

option(s) can be one or more of the following:

BORDER | NOBORDER

LABELALIGN= LEFT | CENTER | RIGHT

POSITION= position-value

TEXTATTRS= style-element

TITLE= "text-string"

TITLEATTRS= style-element

VALUEALIGN= LEFT | CENTER | RIGHT


Required Arguments

text-string-list | (label-list)

you must specify one of the following arguments:

text-string-list

specifies one or more quoted text strings. Each string is placed on a separate line in the text box. For example, "My line 1" "My line 2".

(label-list)

specifies a series of quoted labels and values for the text box.

Specify your label-value pairs as follows:

("label-1" = "value-1" ... "label-n" = "value-n")

For example, ("My label 1" = "My value 1" "My label 2" = "My value 2").


Options

BORDER | NOBORDER

specifies whether to display a border around the text box. The BORDER option displays the border. The NOBORDER option hides the border.

LABELALIGN= LEFT | CENTER | RIGHT

specifies how the labels are aligned when you specify label-value pairs. Specify one of the following:

LEFT

aligns the text to the left.

CENTER

aligns the text to the center.

RIGHT

aligns the text to the right.

Default: LEFT
POSITION= position-value

specifies the position of the text box within the plot. The position values are as follows:

BOTTOM

places the text box at the bottom of the graph.

BOTTOMLEFT

places the text box at the bottom left corner of the graph.

BOTTOMRIGHT

places the text box at the bottom right corner of the graph.

LEFT

places the text box at the left side of the graph.

RIGHT

places the text box at the right side of the graph.

TOP

places the text box at the top of the graph.

TOPLEFT

places the text box at the top left corner of the graph.

TOPRIGHT

places the text box at the top right corner of the graph.

If you do not specify a position, then a position is determined automatically.

TEXTATTRS= style-element

specifies the appearance of the text in the text box.

Default: The default appearance of the text is specified by the GraphValueText style element in the current style.
Tip: The GraphDataText style element makes the text slightly smaller. The GraphLabelText style element makes the text slightly larger.
TITLE= "text-string"

specifies a title for the text box. The title text is always center-aligned.

TITLEATTRS= style-element

specifies the appearance of the title for the text box.

Default: The default appearance of the title text is specified by the GraphLabelText style element in the current style.
VALUEALIGN= LEFT | CENTER | RIGHT

specifies how the values are aligned when you specify label-value pairs. Specify one of the following values

LEFT

aligns the text to the left.

CENTER

aligns the text to the center.

RIGHT

aligns the text to the right.

Default: RIGHT

Previous Page | Next Page | Top of Page