Sample 47801: Use special symbols with SAS/GRAPH® output
This sample illustrates how to include special symbols as part of your graphics output. The sample code on the
Full Code tab uses the Symbol hardware font to display a "less than or equal to" symbol in a title and a "greater than or equal to" symbol in the label for the horizontal axis on a graph generated with the GPLOT procedure.
To add a special symbol to SAS/GRAPH output, you first need to determine which hardware font offers the special symbol that you want. The next step is to determine which hexadecimal value in that hardware font produces the desired special symbol. To view a table containing all of the special symbols that are available with selected hardware fonts, click the Output tab in
Sample 47789.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
The graphics output on the
Results tab was produced using SAS® 9.2. Submitting the sample code with releases of SAS prior to SAS 9.2 might produce different results.
/* Set the graphics environment */
goptions reset=all cback=white border
htitle=12pt htext=11pt;
symbol1 i=none f=marker v=U c=CXDE7E6F;
symbol2 i=none f=marker v=U c=CX7C95CA;
title1 'Displaying special symbols with SAS/GRAPH output';
/* Use 'a3'X with the Symbol font to display the */
/* "less than or equal to" symbol on the graph. */
title2 font='Albany AMT' '50 ' font='symbol' 'a3'X font='Albany AMT' ' 100';
/* Use 'b3'X with the Symbol font to display the */
/* "greater than or equal to" symbol on the graph. */
axis1 label=(font='Albany AMT' '100 ' font='symbol' 'b3'X font='Albany AMT' ' 50');
proc gplot data=sashelp.class;
plot height*weight=sex / haxis=axis1;
run;
quit;
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Use special symbols with SAS/GRAPH® output
Date Modified: | 2012-09-06 16:24:14 |
Date Created: | 2012-09-05 13:56:28 |
Operating System and Release Information
SAS System | SAS/GRAPH | z/OS | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft Windows XP Professional | 9.1 TS1M0 | |
64-bit Enabled AIX | 9.1 TS1M0 | |
64-bit Enabled HP-UX | 9.1 TS1M0 | |
64-bit Enabled Solaris | 9.1 TS1M0 | |
HP-UX IPF | 9.1 TS1M0 | |
Linux | 9.1 TS1M0 | |
OpenVMS Alpha | 9.1 TS1M0 | |
Tru64 UNIX | 9.1 TS1M0 | |