LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (September 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 7 Sep 2005 13:00:21 -0400
Reply-To:     Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:      Re: GPLOT legend and device questions (repost)

Many questions... 1. you use a legend, but you never defined one. Have a look into the documentation for the LEGEND statement to do it. 2. try the ORDER statement in the axis definition. E.g.

axis1 order=(0 to 30 by 1);

but be careful with too many tickmarks an values which you do not know! Sometimes it is useful to calculate the limits and put the results of the calculations in macro variables which you can use for your ORDER= option in the AXIS's statements.

3. order=(0 to 30 by 5)

Almost anything is possible in GRAPH ! If you have no documentation, look at

http://support.sas.com/onlinedoc/913/docMainpage.jsp

There you find all references and examples and you can search for keywords.

4. ??? did you contact SAS Institute for support? JAVA, ok. Maybe you should install a new JAVA package from SUN? But GIF? Which DLL's bring the errors? Any names?

On Wed, 7 Sep 2005 09:11:26 -0700, Chuck.Sas@gmail.com <Chuck.Sas@GMAIL.COM> wrote:

>Original post 9/6/2005 did not propagate. >Using the Graph-N-Go, on 9.1.3 for WIN2000, generated code below I have >the following questions. >1 - The code did not build the legend statement. How do I build the >legend >so that all 3 vars (trn_nbr, cbk_nbr, vdn_nbr) are in a boxed legend >centered outside the right of the graph and each tick is on a seperate >line? >2 - The scale for the axis1 is defaulting to 10, how do I display all >values? >3 - How do I scale axis2 and axis3 to 5? >4 - Likely a new topic. When I specify the java or gif device, I >frequently get a *dll windows error message. Is this a symptom which >may require me to reload Sas 9.1.2.3 or updated device drivers? >/* BEGIN CODE */ >/* Graph-N-Go SAS/Graph Code comments removed */ >data temp; > attrib Day length=8 format=Z2.; > attrib TRN_NBR length=8 label="Messages" ; > attrib CBK_NBR length=8 label="Call Backs" ; > attrib VDN_NBR length=8 label="ACD Calls" ; > input Day= TRN_NBR= CBK_NBR= VDN_NBR=; > datalines; > Day=1 TRN_NBR=35 CBK_NBR=0 VDN_NBR=13 > Day=2 TRN_NBR=27 CBK_NBR=0 VDN_NBR=10 > Day=3 TRN_NBR=19 CBK_NBR=0 VDN_NBR=10 > Day=4 TRN_NBR=45 CBK_NBR=4 VDN_NBR=17 > Day=5 TRN_NBR=16 CBK_NBR=0 VDN_NBR=10 > Day=8 TRN_NBR=45 CBK_NBR=1 VDN_NBR=16 > Day=9 TRN_NBR=26 CBK_NBR=9 VDN_NBR=7 > Day=10 TRN_NBR=12 CBK_NBR=3 VDN_NBR=3 > Day=11 TRN_NBR=18 CBK_NBR=2 VDN_NBR=4 > Day=12 TRN_NBR=37 CBK_NBR=1 VDN_NBR=11 > Day=15 TRN_NBR=39 CBK_NBR=4 VDN_NBR=6 > Day=16 TRN_NBR=30 CBK_NBR=3 VDN_NBR=12 > Day=17 TRN_NBR=27 CBK_NBR=3 VDN_NBR=11 > Day=18 TRN_NBR=31 CBK_NBR=1 VDN_NBR=7 > Day=19 TRN_NBR=33 CBK_NBR=0 VDN_NBR=11 > Day=22 TRN_NBR=32 CBK_NBR=0 VDN_NBR=15 > Day=23 TRN_NBR=31 CBK_NBR=2 VDN_NBR=17 > Day=24 TRN_NBR=43 CBK_NBR=0 VDN_NBR=17 > Day=25 TRN_NBR=24 CBK_NBR=8 VDN_NBR=14 > Day=26 TRN_NBR=30 CBK_NBR=0 VDN_NBR=12 > Day=29 TRN_NBR=30 CBK_NBR=1 VDN_NBR=10 > Day=30 TRN_NBR=32 CBK_NBR=3 VDN_NBR=15 > Day=31 TRN_NBR=36 CBK_NBR=8 VDN_NBR=12 >; >run; >%let path = %sysfunc(pathname(work))\; >/* Begin ODS output */ >ods listing close; >ods html file="&path.Sample.htm" (title="Graph-N-Go Output") > gpath="&path" gtitle gfootnote style=minimal; >/* Set the SAS/Graph options */ >goptions reset=all border nodash > ctext=CX000000 ftext="MS Sans Serif" htext=8 pt > colors=(CX0000FF CXFF0000 CX008080 CX00FF00 > CXFF00FF CXFFFF00 CX00FFFF CX800000 > CX008000 CX800080 CX000080 CX808000 > CXFFFFFF CX808080 CXC0C0C0 CX000000); >/* Set the SAS/Graph device driver */ >* goptions device=JAVA xpixels=761 ypixels=489; > >/* AXIS1 describes the X-axis (horizontal) */ >axis1 minor=none label=("Day") color=CX000000 offset=(5pct,5pct) ; > >/* AXIS2 describes the left Y-axis (vertical) */ >axis2 minor=none label=none color=CX000000 offset=(5pct,5pct); > >/* AXIS3 describes the right Y-axis (vertical) */ >axis3 minor=none label=none color=CX000000 offset=(5pct,5pct); > >/* Each SYMBOL statement specifies style, size and */ >/* color for markers and join lines for an overlay */ >symbol1 line=1 width=1 cv=CX0000FF ci=CX0000FF value=Dot interpol=Join >height=6 pt; >symbol2 line=33 width=1 cv=CX008080 ci=CX008080 value=Triangle >interpol=Join height=6 pt; >symbol3 line=20 width=1 cv=CXFF0000 ci=CXFF0000 value=Square >interpol=Join >height=6 pt; > >proc gplot data=temp; > plot TRN_NBR*DAY=1 / nolegend > haxis=axis1 vaxis=axis2 > cframe=CXFFFFFF caxis=CX000000; > plot2 VDN_NBR*DAY=2 CBK_NBR*DAY=3 / overlay legend=legend1 >vaxis=axis3; >run; >quit; >/* Reset all graphics options */ >goptions reset=all; >/* End ODS output */ >ods html close; >ods listing; >/* END CODE */


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