Text Strings in Graphs

Using the GTL, you can add and control text that appears in your graph. The annotation in the following diagram indicates some of the options and statements that are used to set the text in a typical graph.
Annotated Graph Showing Text in the Graph
The following options, available on plot and legend statements, manage most of the text that you can add to a graph:
Task
Statement
Option
label data points
plot statements that display markers
DATALABEL=column
label a curve or a reference line
plot statements that display lines
CURVELABEL="string" | column
describe a plot in a legend
most plot statements
LEGENDLABEL="string"
add title to a legend
legend statements
TITLE="string"
label an axis
axis statement or layout axis option
LABEL="string"
The GTL also provides the following text statements that can be used to add custom information about the graph analysis or the graph display. This text is independent of the text that is managed by the options on plot and legend statements:
ENTRYTITLE "string"
Defines title text for the entire graph.
ENTRYFOOTNOTE "string"
Defines footnote text for the entire graph.
ENTRY "string"
Defines text that is displayed in the graphical area.
This chapter focuses primarily on how to set text properties for any text. Additional information on text-related features for axes, legends, insets, and multi-cell layouts is available in other chapters: