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

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