|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|
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
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;
proc gplot data=sashelp.class;
plot weight*height / annotate=anno;
On Thu, 21 Oct 2004 15:32:39 -0400, Ling Yun Chen <lchen@RHOWORLD.COM>
>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!
>*********** REPLY SEPARATOR ***********
>On 10/21/2004 at 3:26 PM Lustig, Roger wrote:
>>How did you do it?
>>Seems to me that the MATH font should work--letter 'G' corresponds to the
>>symbol you want.
>>From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU]On Behalf Of Ling
>>Sent: Thursday, October 21, 2004 2:55 PM
>>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
>>have this sign but SAS graph won't print it. Is there a trick in printing
>>these special characters in SAS graph? Thanks!
>>Tel: (617)965-8000 x26
>Tel: (617)965-8000 x26