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

📢

ANNOUNCEMENT

The early bird rate has been extended! Register by March 18 for just $695 - $100 off the standard rate.

 

Check out the agenda and get ready for a jam-packed event featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events. 

 

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