Discussion:
SASGRAPH proc gchart - removing white space
(too old to reply)
Deborah Wentworth
2006-01-14 20:20:07 UTC
Permalink
Greetings -

I have a graph I'm doing with HBAR. I have a small number of categories -
only 3 bars.

The resulting graph has a lot of white space between the title and graph,
and between the graph and the footnote. I've been trying to eliminate
some of that white space for esthetic reasons.

I tried changing YMAX in my GOPTIONS thinking that would do the trick.
However, this reduces the overall size of the graph (i.e., reduces the
size of the title, etc) rather than reducing the amount of unused space
between graph and title/footnote.

Is there a (easy) way to accomplish what I'm trying to do?

Thanks very much in advance!
Deb
Ya Huang
2006-01-15 00:11:37 UTC
Permalink
Change vsize seems to work:

goptions reset=all vsize=3in;
proc gchart data=sashelp.class;
hbar sex;
title "AsfasfAS";
footnote "asdasd";
run;
Post by Deborah Wentworth
Greetings -
I have a graph I'm doing with HBAR. I have a small number of categories -
only 3 bars.
The resulting graph has a lot of white space between the title and graph,
and between the graph and the footnote. I've been trying to eliminate
some of that white space for esthetic reasons.
I tried changing YMAX in my GOPTIONS thinking that would do the trick.
However, this reduces the overall size of the graph (i.e., reduces the
size of the title, etc) rather than reducing the amount of unused space
between graph and title/footnote.
Is there a (easy) way to accomplish what I'm trying to do?
Thanks very much in advance!
Deb
Deborah Wentworth
2006-01-16 16:21:27 UTC
Permalink
On Sat, 14 Jan 2006, Ya Huang wrote:

Ya, thanks for the help. Combining it with changes to the size of text
for titles/footnotes, the resulting graph looks much better.

Deb
Date: Sat, 14 Jan 2006 19:11:37 -0500
Subject: Re: SASGRAPH proc gchart - removing white space
goptions reset=all vsize=3in;
proc gchart data=sashelp.class;
hbar sex;
title "AsfasfAS";
footnote "asdasd";
run;
Post by Deborah Wentworth
Greetings -
I have a graph I'm doing with HBAR. I have a small number of categories -
only 3 bars.
The resulting graph has a lot of white space between the title and graph,
and between the graph and the footnote. I've been trying to eliminate
some of that white space for esthetic reasons.
I tried changing YMAX in my GOPTIONS thinking that would do the trick.
However, this reduces the overall size of the graph (i.e., reduces the
size of the title, etc) rather than reducing the amount of unused space
between graph and title/footnote.
Is there a (easy) way to accomplish what I'm trying to do?
Thanks very much in advance!
Deb
|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<
<
Deborah Wentworth <
Coordinating Centers for Biometric Research <
Division of Biostatistics, University of Minnesota <
612.626.9005 <
<
|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<>|<
Loading...