Data visualization with SAS programming

1200 DPI TIFF image from proc sgplot

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 15
Accepted Solution

1200 DPI TIFF image from proc sgplot

[ Edited ]

I am submitting my figure to a journal that requires a TIFF that is 1200 dpi. I keep trying a bunch of differnt ways but I always get the same message:

WARNING: A very large output size of (X, Y) is in effect. This could make Java VM run out

of memory and result in some Java exceptions. You should reduce the output size or DPI

settings.

ERROR: Java virtual machine exception. java.lang.OutOfMemoryError: Java heap space.

 

I assume that 1200 DPI might be too big for SAS?

 

My latest attempt was with the following code:

goptions device=tiff;

ods listing gpath='C:\My files\tte2.tiff' ;

goptions reset=all device=tiffp xpixels=6000 xmax=6in ypixels=7200 ymax=36in;

proc sgplot data=pred1 ;

(bunch of code);

run;

 

I have fairly little experience with ods complexities so any advice/explanations would be helpful!


Accepted Solutions
Solution
‎03-20-2017 03:42 PM
SAS Super FREQ
Posts: 925

Re: 1200 DPI TIFF image from proc sgplot

You can increase the java heap space to help accomodate the high-dpi request. Check out this support note for the details: http://support.sas.com/kb/31/184.html

 

Hope this helps!

Dan

View solution in original post


All Replies
Solution
‎03-20-2017 03:42 PM
SAS Super FREQ
Posts: 925

Re: 1200 DPI TIFF image from proc sgplot

You can increase the java heap space to help accomodate the high-dpi request. Check out this support note for the details: http://support.sas.com/kb/31/184.html

 

Hope this helps!

Dan

Occasional Contributor
Posts: 15

Re: 1200 DPI TIFF image from proc sgplot

Thanks!! That did the trick. Though, I am now facing another problem:

 

WARNING: GPATH or PATH is not a writable directory. It will be ignored.

 

I am confused as to what "not a writable directoty" exactly means? I have full access the the spot that I was sending the .tiff so I am not sure what is going on. Any help with that issue?

SAS Super FREQ
Posts: 925

Re: 1200 DPI TIFF image from proc sgplot

You have your filename in your GPATH specification. Just use "c:\My FIles".

 

One other note: for the SG procedures, you should not be using GOPTIONS to control the output. Take a look at the ODS GRAPHICS statement to control your global options for this procedure's output.

 

http://support.sas.com/documentation/cdl/en/odsproc/69834/HTML/default/viewer.htm#p0kroq43yu0lspn16h...

 

Thanks!

Dan 

Occasional Contributor
Posts: 15

Re: 1200 DPI TIFF image from proc sgplot

How can I use ODS to output a tiff file that is 1200 DPI then? I don't see a specific option for DPI unless I am outputting HTML. When I use the g

 

Again, I am new to this so I apologize if I am asking obvious questions!

SAS Super FREQ
Posts: 925

Re: 1200 DPI TIFF image from proc sgplot

Try something like this:

 

ods listing gpath='C:\My files\' image_dpi=1200;

ods graphics / width=6000px ypixels=7200px  imagename="tte2";

proc sgplot data=pred1 ;

(bunch of code);

run;

☑ This topic is solved.

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

Discussion stats
  • 5 replies
  • 424 views
  • 0 likes
  • 2 in conversation