Hi,
it is possible to define the height and width of the graph image using the ods graphics statement.
But I could not find an option to define the height and width of the wall space.
It is possible with proc sgplot and/or proc template?
Cheers
@xxformat_com , this will not do what you want. the DESiGNWIDTH/DESIGNHEIGHT are used to establish the default dimensions of the entire graph, not the wall area. By default, the width/height on the ODS GRAPHICS statement are set to the to the DESIGNWIDTH/DESIGNHEIGHT. If you override width/height on the ODS GRAPHICS statement, we use the difference between DESIGNWIDTH/DESIGNHEIGHT and width/height to set certain scaling factors for the final output.
In GTL, you can change the DESIGNWIDTH/DESIGNHEIGHT directly inside of a template to enforce a different default width/height for the graph. This can be desirable for certain types of layouts.
Like this?
ods graphics on / height=300px width=300px; * Choose another unit if needed;
I'm ok with defining new values. I would like to know how to idenfity the default values.
I've found the answer:
Height:
The value of the SAS registry entry "ODS > ODS GRAPHICS > Design Height" or the value of the DesignHeight= option in a STATGRAPH template. Typically, the value is 480px.
@xxformat_com , this will not do what you want. the DESiGNWIDTH/DESIGNHEIGHT are used to establish the default dimensions of the entire graph, not the wall area. By default, the width/height on the ODS GRAPHICS statement are set to the to the DESIGNWIDTH/DESIGNHEIGHT. If you override width/height on the ODS GRAPHICS statement, we use the difference between DESIGNWIDTH/DESIGNHEIGHT and width/height to set certain scaling factors for the final output.
In GTL, you can change the DESIGNWIDTH/DESIGNHEIGHT directly inside of a template to enforce a different default width/height for the graph. This can be desirable for certain types of layouts.
Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.
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.
Ready to level-up your skills? Choose your own adventure.