<?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 graph patterns in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407726#M13934</link>
    <description>&lt;P&gt;I have the following code which works.&amp;nbsp; Can someone tell me how to modify the code so that the graph will have patterns instead of color? &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/folders/myfolders/Cmax_con/peaksdistr.pdf/';  
 ods graphics on /width=4 in; 
 title 'Cmax distribution Peak1';
 proc sgplot data=peak1;
  histogram  y/ legendlabel='Calculated Cmax' fillattrs=(color=red) name= 's' legendlabel ='Calculated Cmax' transparency=0.5 ;
   histogram  dv/ legendlabel='Calculated Cmax' fillattrs=(color=green) name= 'o' legendlabel ='Observed Cmax' transparency=0.5 ;
  keylegend 's' 'o'  /location=inside position =topright across=1; 
  xaxis label='ng/ml'; 
  
 run;
  ods pdf close;  &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 26 Oct 2017 16:51:41 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2017-10-26T16:51:41Z</dc:date>
    <item>
      <title>SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407726#M13934</link>
      <description>&lt;P&gt;I have the following code which works.&amp;nbsp; Can someone tell me how to modify the code so that the graph will have patterns instead of color? &amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods pdf file='/folders/myfolders/Cmax_con/peaksdistr.pdf/';  
 ods graphics on /width=4 in; 
 title 'Cmax distribution Peak1';
 proc sgplot data=peak1;
  histogram  y/ legendlabel='Calculated Cmax' fillattrs=(color=red) name= 's' legendlabel ='Calculated Cmax' transparency=0.5 ;
   histogram  dv/ legendlabel='Calculated Cmax' fillattrs=(color=green) name= 'o' legendlabel ='Observed Cmax' transparency=0.5 ;
  keylegend 's' 'o'  /location=inside position =topright across=1; 
  xaxis label='ng/ml'; 
  
 run;
  ods pdf close;  &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Oct 2017 16:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407726#M13934</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2017-10-26T16:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407729#M13936</link>
      <description>&lt;P&gt;You might prefer one of the journal styles.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect016.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect016.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect060.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en" target="_blank"&gt;http://go.documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_odsgraph_sect060.htm&amp;amp;docsetVersion=14.2&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps add style=journal2 to your ODS PDF statement.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:01:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407729#M13936</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-26T17:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407732#M13937</link>
      <description>&lt;P&gt;For v940m5, it is as simple as specifying FILLPATTERN and NOFILL on both HISTOGRAM statements. However, for prior versions, you will need to make an ODS style change to get the patterns. Something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc template;
define style styles.mypat;
  parent=styles.HTMLBlue;
  style Graphhistogram from GraphComponent /
      displayopts = "outline fillpattern"
  ;
end;
run;

ods html style=styles.mypat;
proc sgplot data=sashelp.class;
  histogram weight;
  histogram height;
run;
&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407732#M13937</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-10-26T17:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407733#M13938</link>
      <description>&lt;P&gt;FILLPATTERN is an option on the Histogram statement if you want manual control of the patterns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n17xrpcduau1f8n1c1nhe477pv18.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p07xphkuqlrhegn1gw3om8nho8t2i" target="_blank"&gt;http://documentation.sas.com/?docsetId=grstatproc&amp;amp;docsetTarget=n17xrpcduau1f8n1c1nhe477pv18.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p07xphkuqlrhegn1gw3om8nho8t2i&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:08:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407733#M13938</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-26T17:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407740#M13939</link>
      <description>This is also an approach that works.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:18:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407740#M13939</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2017-10-26T17:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT graph patterns</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407742#M13940</link>
      <description>This option also works well.&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Oct 2017 17:19:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-graph-patterns/m-p/407742#M13940</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2017-10-26T17:19:57Z</dc:date>
    </item>
  </channel>
</rss>

