BookmarkSubscribeRSS Feed
Sarah-R
Obsidian | Level 7

Hi. 

 

I have two programs that create two different graphs.  How do I get the two of them to match in the color schema each one has?  Currently, they do not match in color schema, and have two different color palates that each one uses.  

 

I tried using proc template; define style statement; with ods pdf file= style=; statement, but when I use the same for these, it does not produce similar results in terms of having similar colors between the two graphs.  

 

Thank you in advanced for whatever help me you may offer me. 

 

 

2 REPLIES 2
djrisks
Barite | Level 11

Hi @Sarah-R,

 

Assuming you have the same groups in the two graphs then you can use attribute maps to make the groups have consistent attributes, i.e. colors and shapes.

 

An example on how to use attribute maps can be seen here:

 

https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Map-It-Out-Using-SG-Attribute-Maps-for-P...

 

 

GraphGuy
Meteorite | Level 14

Which Procs are you using to create the graphs?

 

Can you post some of your code?

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 2 replies
  • 667 views
  • 0 likes
  • 3 in conversation