<?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 Fun with SAS ODS Graphics: A &amp;quot;3-Pointer&amp;quot; Xmas Tree in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-A-quot-3-Pointer-quot-Xmas-Tree/m-p/613349#M19253</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS ODS Graphics Knockoff" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34997i997EACA325A20FF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThreePointerXmasTree.png" alt="SAS ODS Graphics Knockoff" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS ODS Graphics Knockoff&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DIY Xmas Tree Card" style="width: 288px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34998i8D3BC67FCA781FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DIY-christmas-tree-card.jpg" alt="DIY Xmas Tree Card" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DIY Xmas Tree Card&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here's a quick X-ACTO knife-free SAS ODS Graphics take on a &lt;A href="https://howaboutorange.blogspot.com/2012/12/diy-geometric-christmas-tree-card.html" target="_self"&gt;neat Xmas craft project&lt;/A&gt; (Steph Curry ornaments &lt;A href="https://shop.warriors.com/stephen-curry-golden-state-warriors-resin-team-player-ornament/p-24862929526610+z-9214-781479511" target="_self"&gt;sold separately&lt;/A&gt;). Happy Holidays!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: "3-Pointer" Xmas Tree
  Inspired by craft project at https://howaboutorange.blogspot.com/2012/12/diy-geometric-christmas-tree-card.html;
  
data tree;
w=.9;                          * Length of sides of equilateral triangles (leave 10% white space);
h=.9*sqrt(3)/2;                * Height of equilateral triangles (length of sides * sqrt(3)/2);
do r=0 to -5 by -1;            * 6 rows;
  do c=r/2 to r/2+abs(r);      * 1-6 triangles per row;
    up=1;                      * 3 polygon points for triangles pointing up (dark green);
    id+1;                      * Polygon identifier;
    x=c; y=r+.5*h; output;     * Point at triangle top;  
    x=c-w/2; y=r-h/2; output;  * Point at base (left);
    x=c+w/2; y=r-h/2; output;  * Point at base (right);
    up=0;                      * 3 polygon points for triangles pointing down (light green);
    id+1;                      * Polygon identifier;
    x=c; y=r-1.5*h; output;    * Point at trianngle top; 
    x=c-w/2; y=r-h/2; output;  * Point at base (left);
    x=c+w/2; y=r-h/2; output;  * Point at base (right);
  end;
end;
                               * Plot the "tree" of triangles (polygon plot);
ods graphics / reset antialias width=5in height=5in;                               
proc sgplot data=tree noautolegend aspect=1 subpixel noborder;
polygon x=x y=y id=id / colormodel=(cx00FF3E cx00B32C) colorresponse=up fill;
xaxis display=none offsetmin=.05 offsetmax=.05; 
yaxis display=none offsetmin=.05 offsetmax=.05;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 20 Dec 2019 21:00:48 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2019-12-20T21:00:48Z</dc:date>
    <item>
      <title>Fun with SAS ODS Graphics: A "3-Pointer" Xmas Tree</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-A-quot-3-Pointer-quot-Xmas-Tree/m-p/613349#M19253</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SAS ODS Graphics Knockoff" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34997i997EACA325A20FF4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ThreePointerXmasTree.png" alt="SAS ODS Graphics Knockoff" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;SAS ODS Graphics Knockoff&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DIY Xmas Tree Card" style="width: 288px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34998i8D3BC67FCA781FEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DIY-christmas-tree-card.jpg" alt="DIY Xmas Tree Card" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;DIY Xmas Tree Card&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here's a quick X-ACTO knife-free SAS ODS Graphics take on a &lt;A href="https://howaboutorange.blogspot.com/2012/12/diy-geometric-christmas-tree-card.html" target="_self"&gt;neat Xmas craft project&lt;/A&gt; (Steph Curry ornaments &lt;A href="https://shop.warriors.com/stephen-curry-golden-state-warriors-resin-team-player-ornament/p-24862929526610+z-9214-781479511" target="_self"&gt;sold separately&lt;/A&gt;). Happy Holidays!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun w/SAS ODS Graphics: "3-Pointer" Xmas Tree
  Inspired by craft project at https://howaboutorange.blogspot.com/2012/12/diy-geometric-christmas-tree-card.html;
  
data tree;
w=.9;                          * Length of sides of equilateral triangles (leave 10% white space);
h=.9*sqrt(3)/2;                * Height of equilateral triangles (length of sides * sqrt(3)/2);
do r=0 to -5 by -1;            * 6 rows;
  do c=r/2 to r/2+abs(r);      * 1-6 triangles per row;
    up=1;                      * 3 polygon points for triangles pointing up (dark green);
    id+1;                      * Polygon identifier;
    x=c; y=r+.5*h; output;     * Point at triangle top;  
    x=c-w/2; y=r-h/2; output;  * Point at base (left);
    x=c+w/2; y=r-h/2; output;  * Point at base (right);
    up=0;                      * 3 polygon points for triangles pointing down (light green);
    id+1;                      * Polygon identifier;
    x=c; y=r-1.5*h; output;    * Point at trianngle top; 
    x=c-w/2; y=r-h/2; output;  * Point at base (left);
    x=c+w/2; y=r-h/2; output;  * Point at base (right);
  end;
end;
                               * Plot the "tree" of triangles (polygon plot);
ods graphics / reset antialias width=5in height=5in;                               
proc sgplot data=tree noautolegend aspect=1 subpixel noborder;
polygon x=x y=y id=id / colormodel=(cx00FF3E cx00B32C) colorresponse=up fill;
xaxis display=none offsetmin=.05 offsetmax=.05; 
yaxis display=none offsetmin=.05 offsetmax=.05;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 21:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-A-quot-3-Pointer-quot-Xmas-Tree/m-p/613349#M19253</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2019-12-20T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: A "3-Pointer" Xmas Tree</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-A-quot-3-Pointer-quot-Xmas-Tree/m-p/613388#M19256</link>
      <description>&lt;P&gt;How about this one ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
group=1;
 do x=1 to 11 by 2;
  y=1;output;
 end;
 do x=2 to 10 by 2;
  y=3;output;
 end;
 do x=3 to 9 by 2;
  y=5;output;
 end;
 do x=4 to 8 by 2;
  y=7;output;
 end;
 do x=5 to 7 by 2;
  y=9;output;
 end;
 x=6;y=11;output;
 
 group=2;
 do x=1 to 11 by 2;
  y=2;output;
 end;
 do x=2 to 10 by 2;
  y=4;output;
 end;
 do x=3 to 9 by 2;
  y=6;output;
 end;
 do x=4 to 8 by 2;
  y=8;output;
 end;
 do x=5 to 7 by 2;
  y=10;output;
 end;
 x=6;y=12;output;
run;
data have;
 set have;
 if group=1 then y=y-0.38;
 if group=2 then y=y+0.38;
run;
 
ods graphics / attrpriority=none  ;
proc sgplot data=have noautolegend noborder aspect=1;
styleattrs datasymbols=(triangledownfilled trianglefilled)  
datacontrastcolors=(cx00FF3E cx00B32C);
scatter x=x y=y /group=group markerattrs=( size=50) ;
xaxis display=none;
yaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="x.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/35000i2F8A5097444B6E5A/image-size/large?v=v2&amp;amp;px=999" role="button" title="x.png" alt="x.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Dec 2019 11:19:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-A-quot-3-Pointer-quot-Xmas-Tree/m-p/613388#M19256</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-12-21T11:19:11Z</dc:date>
    </item>
  </channel>
</rss>

