BookmarkSubscribeRSS Feed
Jagadishkatam
Amethyst | Level 16

I want to decrease the procedure output area in graphs, so that i can get more area for the footnote,legend below the x axis. Changing the HSIZE and VSIZE is changing the entire graphic output area, however i wish to control the procedure output area alone.

Any suggestions would be appreciated.

Thanks,

Jag

Thanks,
Jag
3 REPLIES 3
GraphGuy
Meteorite | Level 14

If you're using traditional SAS/Graph procedures (such as gplot, gchart, gmap), and using gtitles & gfootnotes (titles & footnotes as part of the graph - which excludes devices such as java & activex), then you can add space after/below the footnote by using the ls= (line spacing) option, such as:

footnote1 ls=3.0 "Footnote with more spacing";

If you want to add space before the footnote, then you can add a blank footnote statement, with a large height (you can specify it in percent, or points, or whatever is convenient), such as:

footnote1 height=10pct " ";

footnote2 "there is a lot of space before this footnote";

Once you've created the desired blank space, you can use the offset= option in the legend statement to move the legend into that space.

Here's a quick/simple example:

legend1 mode=share position=(bottom left) offset=(20,-5) cborder=black;

footnote1 height=10pct " ";
footnote2 height=2.5pct ls=2.5 "here is my footnote";

proc gplot data=sashelp.class;
plot height*weight=sex / legend=legend1;
run;

foo.png

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Perhaps:

ods graphics / reset=all height=13cm width=22cm;

Adjusting the height and width should adjust the graphic, so if your titles/footnotes are outside that then they can be bigger.

Jay54
Meteorite | Level 14

ODS Graphics setting do not apply to the SAS/GRAPH procedures like GCHART or GPLOT.

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1495 views
  • 0 likes
  • 4 in conversation