| Date: | Thu, 21 Oct 2004 16:38:26 -0400 |
| Reply-To: | "Huang, Ya" <yhuang@AMYLIN.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Huang, Ya" <yhuang@AMYLIN.COM> |
| Subject: | Re: RE: print ± sign on graph |
|
| Content-Type: | text/plain; charset=ISO-8859-1 |
Ling,
Use proc gfont to find out the symbol's corresponding hex number for
a particular font. In the following sample, assume you use swissb as the
annotate font, and proc gfont shows that ± has a hex number of 'F1'.
proc gfont name=swissb
nobuild
romhex
showroman;
run;
data anno;
length function style color $ 8;
retain xsys ysys '3' when 'a' style 'swissb' color 'black';
x=50; y=50; function='label'; text='F1'x; size=5; output;
run;
proc gplot data=sashelp.class;
plot weight*height / annotate=anno;
run;
Kind regards,
Ya Huang
On Thu, 21 Oct 2004 15:32:39 -0400, Ling Yun Chen <lchen@RHOWORLD.COM>
wrote:
>Hi All, a few people asked me how I got the ± sign in the first place.
>I got it by using the byte function, byte(177) gives the ± sign. But I
>don't know how to get it to print on a graph. Anybody? Thanks!
>
>Ling
>
>
>
>*********** REPLY SEPARATOR ***********
>
>On 10/21/2004 at 3:26 PM Lustig, Roger wrote:
>
>>Ling:
>>How did you do it?
>>Seems to me that the MATH font should work--letter 'G' corresponds to the
>>symbol you want.
>>
>>Roger
>>
>>-----Original Message-----
>>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Ling
>>Yun Chen
>>Sent: Thursday, October 21, 2004 2:55 PM
>>To: SAS-L@LISTSERV.UGA.EDU
>>Subject: print ± sign on graph
>>
>>
>>Hi SAS-Lers, here's a simple question (or not) for you. I need to print
>>the sign '±' on my SAS graph. I was able to get the annotate data set
>to
>>have this sign but SAS graph won't print it. Is there a trick in printing
>>these special characters in SAS graph? Thanks!
>>
>>Ling
>>
>>Tel: (617)965-8000 x26
>>Fax: (617)965-8014
>
>
>Tel: (617)965-8000 x26
>Fax: (617)965-8014
|