<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SGPLOT How to match band color to line color with grouped data? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842163#M23236</link>
    <description>&lt;P&gt;hi, how can i match the band color to the line color? here is what i have:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /  attrpriority=none noborder width=4in height=4in ;
	proc sgplot data=test noborder nowall noautolegend; 
		styleattrs datacontrastcolors=(black grey) 
		datalinepatterns=(1);
		band x=time lower=sdf_lcl upper=sdf_ucl /group=cat transparency=0.9   fillattrs=(color= black); 
		pbspline x=time y=prob/ group=cat nomarkers; 
	run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it produces a figures like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="silango_0-1667411140100.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76879i19D3B238A9EC1BC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="silango_0-1667411140100.png" alt="silango_0-1667411140100.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it's close. how can i specify band colors? currently they are both black and high transparency. i want them to match the line colors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!!&lt;/P&gt;</description>
    <pubDate>Wed, 02 Nov 2022 17:47:13 GMT</pubDate>
    <dc:creator>pamplemousse822</dc:creator>
    <dc:date>2022-11-02T17:47:13Z</dc:date>
    <item>
      <title>SGPLOT How to match band color to line color with grouped data?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842163#M23236</link>
      <description>&lt;P&gt;hi, how can i match the band color to the line color? here is what i have:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on /  attrpriority=none noborder width=4in height=4in ;
	proc sgplot data=test noborder nowall noautolegend; 
		styleattrs datacontrastcolors=(black grey) 
		datalinepatterns=(1);
		band x=time lower=sdf_lcl upper=sdf_ucl /group=cat transparency=0.9   fillattrs=(color= black); 
		pbspline x=time y=prob/ group=cat nomarkers; 
	run;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it produces a figures like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="silango_0-1667411140100.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76879i19D3B238A9EC1BC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="silango_0-1667411140100.png" alt="silango_0-1667411140100.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;it's close. how can i specify band colors? currently they are both black and high transparency. i want them to match the line colors.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks!!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842163#M23236</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2022-11-02T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT How to match band color to line color with grouped data?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842169#M23237</link>
      <description>&lt;P&gt;Use and attribute map.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simple example:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/PROC-SGPLOT-VBOX-how-to-get-consistent-colors-across-the-BY/m-p/529393#M17694" target="_blank"&gt;Solved: PROC SGPLOT VBOX — how to get consistent colors ac... - SAS Support Communities&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 17:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842169#M23237</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-11-02T17:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT How to match band color to line color with grouped data?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842179#M23238</link>
      <description>&lt;P&gt;that worked, thank you!&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	data attrmap; 
		retain id "myid" linecolor "black";
		input value $ fillcolor $ linecolor $; 
		datalines; 
		1 cxD3D3D3 cxD3D3D3
		2 cx000000 cx000000
		;
	run;

	ods graphics on /  attrpriority=none noborder width=4in height=4in ;
	proc sgplot data=test noborder nowall noautolegend dattrmap=attrmap; 
		styleattrs datalinepatterns=(1);
		pbspline x=time y=survival  / group=catnomarkers attrid=myid ; 
		band x=time lower=sdf_lcl upper=sdf_ucl  /group=cattransparency=0.8 attrid=myid; 

	run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="silango_0-1667414032590.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76883iD86492FAFAB2AB65/image-size/medium?v=v2&amp;amp;px=400" role="button" title="silango_0-1667414032590.png" alt="silango_0-1667414032590.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Nov 2022 18:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-How-to-match-band-color-to-line-color-with-grouped-data/m-p/842179#M23238</guid>
      <dc:creator>pamplemousse822</dc:creator>
      <dc:date>2022-11-02T18:34:42Z</dc:date>
    </item>
  </channel>
</rss>

