LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2003, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 14 Nov 2003 14:18:32 -0800
Reply-To:     WCheng@ISISPH.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Wei Cheng <WCheng@ISISPH.COM>
Subject:      Re: Proc Gplot-problem
Comments: To: "Chang Y. Chung" <chang_y_chung@HOTMAIL.COM>
Content-Type: text/plain; charset="us-ascii"

I know it's Friday. :)

Actually SAS/GRAPH continues to cycle plot symbol value through the colors list (256 colors?) until all the colors have been used if you don't specify a color, then it will switch to the next symbol value, so you need to specify the color option.

Wei

"Chang Y. Chung" <chang_y_chung@HOTMAIL.COM> Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> 11/14/03 01:58 PM Please respond to "Chang Y. Chung"

To: SAS-L@LISTSERV.UGA.EDU cc: Subject: Re: Proc Gplot-problem

Hi, Ya, (it is fun to say this!! :-)

It is just the way it is -- the symbol statements does not work unless the color option is specified, except the first one.

Cheers, Chang

<sasl:code> data one; input y x s; cards; 10 1 1 20 2 1 25 3 1 30 4 1 24 1 2 23 2 2 22 3 2 22 4 2 ; run;

goptions reset=all;

proc gPlot data=one; title "This shows plus symbols only"; plot y*x=s; symbol1 value=plus interpol=splinep; symbol2 value=dot interpol=splinep; run; quit;

proc gPlot data=one; title "This one show plus and dot^s"; plot y*x=s; symbol1 color=cx000000 value=plus interpol=splinep; symbol2 color=cx0000ff value=dot interpol=splinep; run; quit; </sasl:code>

On Fri, 14 Nov 2003 13:50:45 -0800, Huang, Ya <yhuang@AMYLIN.COM> wrote:

>Me neither :-) > >-----Original Message----- >From: LWn [mailto:villerwalle.nononospam@YAHOO.COM] >Sent: Friday, November 14, 2003 1:47 PM >To: SAS-L@LISTSERV.UGA.EDU >Subject: Re: Proc Gplot-problem > > >Thanks for the tip but I still don't understand why > symbol1 v="dot" c=black; > symbol2 v="diamond" c=black; > symbol3 v="plus" c=black; >works but without c= it doesn't > >/LWn > > >"Huang, Ya" <yhuang@AMYLIN.COM> skrev i meddelandet >news:9312B0A3065FA54EAB5A4D399EF96346F4CD1A@api-exch-1.amylin.com... >> Just add c= options: >> >> symbol1 v="dot" c=read; >> symbol2 v="diamond" c=green; >> symbol3 v="plus" c=blue; >> >> -----Original Message----- >> From: Lars Wahlgren [mailto:Lars.WahlgrenRemove@THIS.STAT.LU.SE] >> Sent: Friday, November 14, 2003 8:00 AM >> To: SAS-L@LISTSERV.UGA.EDU >> Subject: Proc Gplot-problem >> >> >> proc plot data=abc ; >> plot salary*age=educ ; >> run ; >> >> works fine. I get different symbols for the three different education >> levels but when I try >> >> proc Gplot data=abc ; >> symbol1 v="dot" ; >> symbol2 v="diamond" ; >> symbol3 v="plus" ; >> plot salary*age=educ ; >> run ; >> >> I don't get three different symbols, I get all dots but in different >> colours. >> Anybody got a remedy for this? >> >> /Lars Wahlgren >> Lund university, Sweden


Back to: Top of message | Previous page | Main SAS-L page