BookmarkSubscribeRSS Feed
Eva
Quartz | Level 8 Eva
Quartz | Level 8

Dear all,

I create pdf output with a graph, a vbar. As soon as I set titles, der vertical size of the graph gets very small - too small - it doesn't use all of the paper I have. Here's my code (I use SAS 9.2 with UNIX in the SAS portal):

options orientation=landscape papersize=a3;

ods pdf body=_webout style=sasweb notoc uniform;

[this is where I would put the title - code see below]

goptions device=sasprtc ftext="helvetica" cback=white colors=(CX113388,CX426BB2,CX819CCC,CXB3C4DC);

proc gchart data=work.mygraph;

     vbar field1 / group=field2 freq=field3 patternid=midpoint frec discrete raxis=axis1 maxis=axis2 gaxis=axis3;

     axis1 label=(h=10 angle=90 color=black 'My label') minor=none;

     axis2 label=none;

     axis3 label=none;

run;

quit;

If I don't use a title the graph is ok in size (yet vsize nor ypixels help in enlarging it vertically).

Now when I use title where I indicated in the code above (or within the proc step - effect it the same) the graph gets smaller. And it even gets smaller when I user more titles:

title "My heading";

title2 "some remarks";

title3 "blabla";

...

title9 "text";

I then have the title on the top of the page followed by much white space and then a small strip of vbar graph followed by much white space.

Can anybody help?

Best wishes

Eva

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 625 views
  • 0 likes
  • 1 in conversation