Sample 35938: Create an axis label on multiple lines using the Graph Template Language (GTL)
This sample uses the Graph Template Language (GTL) to produce a layout with entries to simulate an axis label on multiple lines.
This sample uses the Graph Template Language (GTL) to produce a layout with entries to simulate an axis label on multiple lines.
proc template;
define statgraph sgplot;
begingraph;
layout lattice;
EntryTitle "Iris Petal Dimensions" ;
layout overlay / yaxisopts=(display=(ticks tickvalues line));
Ellipse X=PetalLength Y=PetalWidth / Display=( Outline Fill )
Type=Predicted LegendLabel="95% Prediction Ellipse" NAME="ELLIPSE";
ScatterPlot X=PetalLength Y=PetalWidth / primary=true
Markerattrs=( Color=navy Symbol=circlefilled)
LegendLabel="Petal Width (mm)" NAME="SCATTER";
DiscreteLegend "ELLIPSE" "SCATTER" / Location=Inside halign=right valign=bottom;
endlayout;
sidebar / align=left;
layout gridded / columns=3;
entry "Petal" / rotate=90 textattrs=(size=12pt weight=bold);
entry "Width" / rotate=90 textattrs=(size=10pt weight=bold);
entry "In mm" / rotate=90 textattrs=(size=10pt weight=bold);
endlayout;
endsidebar;
endlayout;
endgraph;
end;
run;
title;
ods listing close;
ods html image_dpi=100 file="Splitvalues.html" path='.';
ods graphics / reset imagename='SplitValues' imagefmt=gif;
proc sgrender data=sashelp.iris template=sgplot;
run;
ods html close;
ods listing;
This sample uses the Graph Template Language (GTL) to produce a layout with entries to simulate an axis label on multiple lines.
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> SGRENDER Query and Reporting ==> Creating Reports ==> Graphical ==> Graph Template Language (GTL)
|
| Date Modified: | 2009-06-11 13:49:53 |
| Date Created: | 2009-05-15 09:42:13 |
Operating System and Release Information
| SAS System | SAS/GRAPH | z/OS | 9.2 TS1M0 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
| Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
| Microsoft® Windows® for x64 | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
| Microsoft Windows XP Professional | 9.2 TS1M0 | |
| Windows Vista | 9.2 TS1M0 | |
| 64-bit Enabled AIX | 9.2 TS1M0 | |
| 64-bit Enabled HP-UX | 9.2 TS1M0 | |
| 64-bit Enabled Solaris | 9.2 TS1M0 | |
| HP-UX IPF | 9.2 TS1M0 | |
| Linux | 9.2 TS1M0 | |
| Linux for x64 | 9.2 TS1M0 | |
| OpenVMS on HP Integrity | 9.2 TS1M0 | |
| Solaris for x64 | 9.2 TS1M0 | |