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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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
  • 2581 views
  • 0 likes
  • 2 in conversation