| TEMPLATE Procedure: Text Statements (Experimental) |
Like an ODS table, style, or tagset definition, the ODS statistical graph definition is specified within the PROC TEMPLATE statements. The ODS statistical graph definition begins with a DEFINE STATGRAPH statement and ends with an END statement. The text statements must be nested within a LAYOUT block. The following example shows the structure of an ODS statistical graph definition.
In the following example, the ENTRYTITLE statement is specified within a LAYOUT GRIDDED statement block, but outside of the nested LAYOUT GRIDDED statement block. As a result, the title is displayed outside of the nested grid's layout area. Each ENTRY statement specifies text to display in the specified column, and the text is automatically centered in that column. When the graphs are displayed in the next column row, the text is displayed as titles for the graphs.
layout gridded / columns=1 border; entrytitle="Weight vs. Height by Gender"; layout gridded columns=2 columngutter=(0 10 0); entry "Gender = Female"; entry "Gender = Male"; scatterplot x=FemaleWeight y=FemaleHeight / border; scatterplot x=MaleWeight y=MaleHeight / border; endlayout; endlayout;
Titles and Subtitles for Graphs in a Gridded Layout
![[Titles and Subtitles for Graphs in a Gridded Layout]](./images/textgeneral.gif)