BookmarkSubscribeRSS Feed
deleted_user
Not applicable
For html output how do I control how much space is allotted in my browser window for the plot?
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
The size/dimensions of the image - explore vsize and hsize parameters:

http://support.sas.com/rnd/datavisualization/papers/GraphBasics.pdf

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument this topic/post:

proc gplot graph dimensions ods site:sas.com
GraphGuy
Meteorite | Level 14
For my ods html sas/graph output, I use goptions xpixels & ypixels.

I find that xpixels/ypixels let me specify *any* desired size, whereas (iirc) hsize & vsize were "constrained" by the limits set in the device files, or something like that.
deleted_user
Not applicable
changing xpixels/ypixels just seem to warp the image.
At the moment my plot is chopped off at the top due to lack of browser window space.
GraphGuy
Meteorite | Level 14
Hmm ... perhaps you're mixing-and-matching some options that don't work well together.

Try using the code below, and make sure the gplot comes out looking right - if it doesn't look right, maybe something in your autoexec.sas, etc, isn't "playing well" with these options. Once you get it looking right, then swap your graphics proc for this 'proc gplot'.


filename odsout '.';

goptions device=gif;
goptions xpixels=400 ypixels=400;

ODS LISTING CLOSE;
ODS HTML path=odsout body="foo.htm";

proc gplot data=sashelp.class;
plot height*weight / name="foo";
run;

quit;
ODS HTML CLOSE;
ODS LISTING;

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
  • 4 replies
  • 857 views
  • 0 likes
  • 3 in conversation