Data visualization with SAS programming

ODS Graphics problem with transparent background

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 7
Accepted Solution

ODS Graphics problem with transparent background

[ Edited ]

Hi

 

When I create a graph with transparent background with no borders, the output contains a thin non-transparent border.

 

ods listing gpath=".";
ods graphics / reset=all imagename="graphout" imagefmt=pdf border=off;

proc sgplot data=sashelp.class noopaque nowall;
	histogram age;
run;

ods listing close;

output.001.jpeg

Any idea how to fix the problem?


Accepted Solutions
Solution
‎06-08-2016 05:12 PM
SAS Super FREQ
Posts: 925

Re: ODS Graphics problem with transparent background

[ Edited ]

Also add PAD=0:

 

proc sgplot data=sashelp.class noopaque nowall pad=0;

 

By default, there is a 10px pad around the graph that is not affected by the OPAQUE option. 

View solution in original post


All Replies
Solution
‎06-08-2016 05:12 PM
SAS Super FREQ
Posts: 925

Re: ODS Graphics problem with transparent background

[ Edited ]

Also add PAD=0:

 

proc sgplot data=sashelp.class noopaque nowall pad=0;

 

By default, there is a 10px pad around the graph that is not affected by the OPAQUE option. 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 277 views
  • 0 likes
  • 2 in conversation