BookmarkSubscribeRSS Feed
Anita_n
Pyrite | Level 9

I used outlineattrs to specify the color and thickness of the line. But if I specify for example a value for the thickness between 0 and 1.5   There seems to be no changes. The thickness remains the same. Is there anything am doing wrong. Am tring to get very thin otlines.

Is there any way to make the borderlines also very thin? 

proc sgplot data = population2017 noautolengend ;
format Male Female positive.;
hbarparm category= agegroup  response=Male/ barwidth=1 fillattrs=(color=blue baselineattrs=(thickness=0)
outlineattrs=(color=black thickness= 0) missing;
hbarparm category= agegroup response=Female/  barwidth=1 fillattrs=(color=red) baselineattrs=(thickness=0)
outlineattrs=(color=black thickness=0) missing;
xaxis values=(-200000 to 200000 by 100000) display=(nolabel) grid  ;
yaxis display=(nolabel) offsetmin=0 offsetmax=0; 
run;

 

I used outlineattrs to specify the color and thickness of the line. But if I specify for example a value for the thickness between 0 and 1.5   There seems to be no changes. The thickness remains the same. Is there anything am doing wrong. Am tring to get the bar outlines very thin.

Is there any way to make the borderlines also very thin? 

2 REPLIES 2
Rick_SAS
SAS Super FREQ

The default unit of measurement is pixels, which is integer-valued. You can have a 1-pixel boundary or a zero-pixel boundary (which means "no boundary"). There is no such thing as a "half a pixel". 

 

Because the THICKNESS= option expects an integer, it rounds the value to the nearest integer. However, it also appears to round up any positive value to 1. Thus the following are all equivalent and give a 1-pixel wide boundary

thickness=0.1px

thickness=1.1px

thickness=1.49px

 

You can get rid of the boundary by using thickness=0,

Anita_n
Pyrite | Level 9

Okay thanks, that means there is no way to make the boundaries thinner

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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