BookmarkSubscribeRSS Feed
Not applicable
Below is my code, which does produce a TIFF image at the dpi I need. The journal specifies that figures are in a .tiff format at 800 dpi. However, lines for the axes around the boxplot and around the blocking variable are very, very faint when I print the graph and on my computer screen when I view the image in Microsoft Office Document Imaging. The lines for the whiskers are also very faint even if I increase the lfactor=8. This problem occurs when I insert the picture into a Word document. When I look at the graph output in SAS, all the lines are thick and crisp. Also, the size of the TIFF produced is small compared to other TIFF files with the sampe dpi.

This technical document provided some help.

goptions reset=all device=tiffp rotate=landscape ftext="Arial" htext=12pt lfactor=4
gsfname=output gsfmode=replace hpos=70
ypixels=3200 ymax=4in xpixels=4800 xmax=6in;
filename output 'C:\r_watershed\Manuscript\Figures\precip_boxplots1_z.tiff';
symbol value=plus color=black;
proc boxplot data=precip_boxplot1;
plot precip*Watershed(year)/blockpos=1 blocklabelpos=above cblockvar=(color)
vminor=4 boxstyle=skeletal nohlabel cboxfill=(color);
label year='Year'
precip='Precipitation (mm/yr)';
Meteorite | Level 14
I've experienced similar problems, and I think there's probably a bug.

I'd recommend calling Tech Support, and have them open an official tech-support track, and maybe a "customer reported problem" (crp) in the defects system (or maybe make defect S0556835 into a crp if they think it sounds like the same problem).
Not applicable
I used the waxis=2 option and that has thickened the lines of the axes around the boxplot so that is better. However, the lines for medians within the boxes and the lines for the whiskers remain very thin in TIFF file. Looking at the graph within SAS the lines for the boxes, medians, and whiskers are all thicker and look good.

I will send this problem to Tech Support.
Meteorite | Level 14
Yes, some individual pieces of the graph have ways to hard-code a thickness ... but then if you ever want to create output with a different device (eg, dev=png), then you have to un-hardcode all the things you hard-coded to thicker values. Plus, as you've found, some pieces of the graph don't have ways to hardcode a thickness.

Ideally, the lfactor should give you a good/easy way to control the thickness of all lines in a graph ... unfortunately it seems to still have a few issues to work out 😕 It will be helpful to get some customer feedback (through tech support) to help give this problem a high(er) priority.



Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.


Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 


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
  • 3 replies
  • 2 in conversation