- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-02-2010 09:03 PM
(2003 views)
For html output how do I control how much space is allotted in my browser window for the plot?
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
At the moment my plot is chopped off at the top due to lack of browser window space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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;
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;