Date: Thu, 20 Apr 2006 08:57:09 -0400
Reply-To: joewhitehurst@bellsouth.net
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Joe Whitehurst <joewhitehurst@BELLSOUTH.NET>
Organization: Analyticum, Inc.
Subject: Re: charts, using gchart,
greplay - trying to find the right device type
In-Reply-To: <200604201243.k3KAkc7b019244@mailgw.cc.uga.edu>
Content-Type: text/plain; charset="us-ascii"
Hari,
I don't think your problem is caused by the device type. I think you are
trying to replay the chart with an aspect ratio that is different from the
aspect ratio used to create the chart...just a guess.
Joe
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Hari
Nath
Sent: Thursday, April 20, 2006 8:44 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: Re: charts, using gchart, greplay - trying to find the right device
type
On Wed, 19 Apr 2006 14:43:15 -0400, Hari Nath <hari_s_nath@YAHOO.COM> wrote:
>Hi all,
> The following program graphs two charts........they look ok within SAS,
>but are messed up(meaning not clear) when ouputted as an PNG or GIF, or
>even pdf/rtf file........think that most of the SAS-l people should have
>come across this problem........may be I need to modify my code a
>little....but if someone has a sample code to tweak my mistakes, that would
>be great......
>
>thanks so much,
>hari
>
>
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>charting starts>>>>>>>>>>>>>>>>>>>>>>>>>
>
>
>/* Delete GRSEG entries from GSEG catalog, Optional*/
>
>proc greplay nofs igout=work.gseg;
>delete _all_;
>run;
>
>*FILENAME PNGOUT "C:\Temp1\&GNAME1..PNG" ;
>goptions reset=all VPOS=45 HPOS=196
>Rotate=landscape ftext='Times New Roman/bo' htext=1.75 /*nodisplay*/;
>axis1 value=(a=45 r=0 h=2.3) label=(h=2.75 "Loss Range")
>length=60 pct offset=(5,5)pct;
>axis2 value=(h=2.0) label=(h=2.0 "Frequency");
>axis3 value=(h=2.0) label=(h=2.0 "Sum (in 000's)");
>*axis3 value=(h=2.5) label=(h=2.5 "Sum");
>pattern v=s c=blue;
>
>proc gchart data=loss_data GOUT=WORK.GSEG1 ;
>/* note, if netloss is in 000's, use format: losses. , otherwise, use
>format: loss. */
>format NetLoss losses.;
>*format NetLoss loss.;
>format Dollar dollar8.0;
>vbar Netloss / discrete freq maxis=axis1 raxis=axis2 width=15;
>run;
>vbar NetLoss / discrete sumvar=Dollar sum maxis=axis1 raxis=axis3 width=16;
>run;
>quit;
>
>proc gslide;
>title1 h=3.6 ' '; /* changing h value can change top margin */
>title2 h=2.5 'Operational Loss Data (Netloss)';
>title3 h=0.2 ' ';
>title4 h=1.5 "&Title4";
>run;
>
>/* changing uly value can move the chart panel up/down */
>
>ods pdf file="c:\temp1\junk.pdf" style=minimal;
>
>GOPTIONS DISPLAY DEVICE=activex ; * GSFNAME=activexOUT GSFMODE=APPEND ;
>OPTIONS ORIENTATION=LANDSCAPE ;
>GOPTIONS CTEXT=BLACK CELLS ;
>
>proc greplay nofs IGOUT=WORK.GSEG1 TC=tempcat ; *GOUT=WORK.GSEG2 ;
>tdef spec
>1/ llx=0 lly=0
>ulx=0 uly=80
>urx=50 ury=80
>lrx=50 lry=0
>2/ llx=50 lly=0
>ulx=50 uly=80
>urx=100 ury=80
>lrx=100 lry=0
>3/ llx=0 lly=0
>ulx=0 uly=100
>urx=100 ury=100
>lrx=100 lry=0
>;
>template spec;
>treplay 1:gchart 2:gchart1 3:gslide ;
>run;
>quit;
>
>ods pdf close;
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>charting
ends>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
|