<?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 Re: Fill patterns in Highlow plot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353784#M12299</link>
    <description>&lt;P&gt;Fill patterns for HighLow plot are NOT currently supported. &amp;nbsp;Fill patterns will be supported for most plot types with fill attribute starting with SAS 9.40M5 to be released later this year. &amp;nbsp;In the meantime, you can refer to this recent &lt;A href="http://support.sas.com/resources/papers/proceedings17/0385-2017.pdf" target="_blank"&gt;SASGF 2017 paper by Amos Shu&lt;/A&gt; on how you can work around this.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 16:34:04 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2017-04-26T16:34:04Z</dc:date>
    <item>
      <title>Fill patterns in Highlow plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353711#M12295</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a horizontal bar graph with median and 95% CI using highlow plot, since each bar represents a group I wanted to fill the bars with different patterns keeping the same color. So, I tried doing this by creating a template and by creating data attribute maps and both didnt work for patterns. However, the graph seems to pick the colors from template/attrmap. Is there any way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS version: SAS 9.4_M4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:29:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353711#M12295</guid>
      <dc:creator>Ram21</dc:creator>
      <dc:date>2017-04-26T14:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Fill patterns in Highlow plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353715#M12296</link>
      <description>&lt;P&gt;Insufficient information. As a minimum we would need your template, attribut set and actual graph procedure call. Best would also provide an example of the data used for the plots.&lt;/P&gt;
&lt;P&gt;You can use Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353715#M12296</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-26T14:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fill patterns in Highlow plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353737#M12298</link>
      <description>&lt;P&gt;Thanks Ballard, for the quick reply. Below is the sample code and attached are plots using template and attribute map. I was expecting to see a pattern "L2" on 2nd and 4th bars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc template;
   define style mypatterns;
   parent=styles.htmlblue;
	style graph from graph / 
	attrpriority="None";
   style GraphBar from GraphComponent /                                 
         displayopts = "fill outline fillpattern";
      style GraphData1 from GraphData1 /                                      
            fillpattern = "E";                                                  
      style GraphData2 from GraphData2 /
            fillpattern = "L2";                                                  
     end;
run;

data attrmap;
length fillpattern $4;
	id='Make'; value='Acura'; fillcolor='Red'; fillpattern='E';output;
	id='Make'; value='Audi'; fillcolor='Red'; fillpattern='L2';output;
	id='Make'; value='BMW'; fillcolor='Red'; fillpattern='E';output;
	id='Make'; value='Buick'; fillcolor='Red'; fillpattern='L2';output;
run;


proc means data=sashelp.cars;
	by make;
	var mpg_city;
	output out=means mean=mean min=min max=max;
	where make in ('Acura' 'Audi' 'BMW' 'Buick');
run;

options nonumber nodate orientation=landscape;
ods graphics /reset noscale width=8in height=5in imagename="Plot using Template";
ods listing gpath="H:\Test" style=mypatterns;

title1 " ";
footnote1 " ";
proc sgplot data=means noautolegend;
	highlow y=make high=max low=min / type=bar barwidth=0.7 fillattrs=(color=yellow) LINEATTRS=(pattern=solid ) dataskin=crisp group=make;
	scatter y=make x=mean / markerattrs=(symbol=starfilled size=8 color=black);
run;

options nonumber nodate orientation=landscape;
ods graphics /reset noscale width=8in height=5in imagename="Plot using Attrib Map";
ods listing gpath="H:\Test" style=mypatterns;

title1 " ";
footnote1 " ";
proc sgplot data=means noautolegend dattrmap=attrmap;
	highlow y=make high=max low=min / type=bar barwidth=0.7 /*fillattrs=(color=yellow)*/ LINEATTRS=(pattern=solid ) dataskin=crisp group=make attrid=Make;
	scatter y=make x=mean / markerattrs=(symbol=starfilled size=8 color=black);
run;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13753iEA8E81289DD13561/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Plot using Attrib Map1.png" title="Plot using Attrib Map1.png" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13754iA040654E0BE71AB9/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Plot using Template1.png" title="Plot using Template1.png" /&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353737#M12298</guid>
      <dc:creator>Ram21</dc:creator>
      <dc:date>2017-04-26T16:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Fill patterns in Highlow plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353784#M12299</link>
      <description>&lt;P&gt;Fill patterns for HighLow plot are NOT currently supported. &amp;nbsp;Fill patterns will be supported for most plot types with fill attribute starting with SAS 9.40M5 to be released later this year. &amp;nbsp;In the meantime, you can refer to this recent &lt;A href="http://support.sas.com/resources/papers/proceedings17/0385-2017.pdf" target="_blank"&gt;SASGF 2017 paper by Amos Shu&lt;/A&gt; on how you can work around this.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/353784#M12299</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-04-26T16:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fill patterns in Highlow plot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/354100#M12311</link>
      <description>&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for providing the reference. I was able to produce the graph I needed with "barchart" as suggested in the paper.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 13:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fill-patterns-in-Highlow-plot/m-p/354100#M12311</guid>
      <dc:creator>Ram21</dc:creator>
      <dc:date>2017-04-27T13:17:40Z</dc:date>
    </item>
  </channel>
</rss>

