Graphics Programming

Data visualization using SAS programming, including ODS Graphics and SAS/GRAPH. Charts, plots, maps, and more!
BookmarkSubscribeRSS Feed
iznally
Calcite | Level 5

Hi all,

I'm stucked with the line thickness of polylines (annotate functions polyline and polycont). There seem to be just the choice between extremely thin (size=1) and thick (size=2). Using decimal values doesn't return an error, but has no effect either. As per the online documentation these are pixel values and the unit cannot be changed. But the line with size 2 is definitely more than two pixels thick...?

I'm using this function to accentuate particular state borders on my map.

Thanks in advance for any advice!

3 REPLIES 3
GraphGuy
Meteorite | Level 14

I usually go with lighter & darker colors for the 2 borders, rather than thin/thicker lines.

Here's an example from my book:

http://robslink.com/SAS/book/example12.htm

http://robslink.com/SAS/book/example12_info.htm

iznally
Calcite | Level 5

Thanks Robert! Yes thats a possibility, but I would really like to keep them in the same color - there's no option for a more differentiated size setting?

BenthamLEE
Calcite | Level 5

We can adjust thin/thickness of the polygon annotation or polyline annotation when we call and program the annotation creating component by adjusting the methods of  ”fill As AnnotationBrush, shadow As AnnotationBrush, shadowX As Single, shadowY As Single“. By the way, annotation line or shadow color also are adjustable.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1983 views
  • 0 likes
  • 3 in conversation