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

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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