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?

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1061 views
  • 0 likes
  • 3 in conversation