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 (August 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 6 Aug 2007 19:40:12 -0700
Reply-To:   Tree Frog <tree.frog2@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Tree Frog <tree.frog2@HOTMAIL.COM>
Organization:   http://groups.google.com
Subject:   ODS PDF x SAS/GRAPH grief
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset="iso-8859-1"

Hi all

The following code is an excerpt from a report I'm developing to some exacting specs for a client. There are a bunch of similar graphs of the size indicated by the border of the below graph (in production, there is no border, but here it's helpful to illustrate my problem). For some reason though, SAS is forcing lots of white space to the left of, and below, the actual graphs (see the pdf output). It is also insisting on rendering the x-axis labels vertically, when I want them to be normal and horizontal.

You can see from the code that I have tried a lot of things (some of which are commented out), including altering the horigin, xmax (etc), length, htext... Does anyone have any insights?

Please, please, please help me! [Note that I'm aware I'm using GBARLINE but without actually plotting a line; this is a placeholder for future functionality.]

Thanks

Tree Frog

data dispgraphs; input catn salesm2 dummy; datalines; 1 23 . 2 56 . 3 67 . ;;; run;

%let colorstring1='6B140066' , 'FF000000' , 'FF920066'; %let axisstring=tick=1 'This Week' tick=2 'Group BM' tick=3 'Grand BM'; %let orderstring=1 2 3;

options nodate nonumber dev=sasprtc;

goptions ftext="Arial" border /*htext=5pct*/ ctext=black ctitle=black colors=(&colorstring1) /*xmax=0 vmax=0 hsize=0 hpos=30*/ horigin=0in ;

axis1 style=1 width=1 color=black major=(number=5 width=1) value=(height=10pct font="Arial") minor=none label=none offset=(0 cm,0 cm) ;

axis2 style=1 width=1 color=black value=(h=4 pct font="Arial/b" &axisstring) order=(&orderstring) label=none /*length=75pct*/ /*origin=(21pct)*/ /*offset=(0 cm,0 cm)*/ ;

axis3 style=0 width=1 major=none minor=none value=none label=none ;

ods _all_ close; ods pdf file='C:\testing123.pdf' notoc startpage=never ; ods layout start; ods region x=54.91 pct y=27.29pct height=8.94pct width=21.38pct;

proc gbarline data=dispgraphs; bar catn / discrete sumvar=salesm2 clipref noframe type=sum patternid=midpoint raxis=axis1 maxis=axis2 coutline=black width=3 ; plot / sumvar=dummy axis=axis3 ; format salesm2 dollar8.; run;

ods pdf close;


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