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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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