BookmarkSubscribeRSS Feed
deleted_user
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.
Thanks,
Mike

This technical document provided some help.
http://support.sas.com/techsup/technote/ts674/ts674.html#IVC

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)';
run;
quit;
3 REPLIES 3
GraphGuy
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).
deleted_user
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.
Thanks,
Mike
GraphGuy
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.

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 3021 views
  • 0 likes
  • 2 in conversation