<?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 '2605'x, a '2605'x / Dancing in the night in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-A-2605-x-a-2605-x-Dancing-in-the-night/m-p/419982#M14470</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstarAstar.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17125i120F5DC835391FB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="AstarAstar.gif" alt="AstarAstar.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick SAS ODS Graphics take on &lt;A href="https://www.northstory.ca" target="_self"&gt;Northstory.ca&lt;/A&gt;'s clever &lt;A href="https://www.northstory.ca/modern-christmas-cards/" target="_self"&gt;Modern Christmas Cards&lt;/A&gt; DIY project. 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: A '2605'x, a '2605'x / Dancing in the night;

data stars;                                /* Create points for scatter plots */
input x y@@;                               /* Read x-y pairs of points for "stars" */
if x=3 &amp;amp; y=4 then color=2; else color=1;   /* Assign different color to one star */
y=y*.85;                                   /* Tighten up y-axis a smidgen */
xStand=2.5;                                /* Add points for "tree stand" */
yStand=1*.85;
datalines;
2.5 5 2 4 3 4 1.5 3 2.5 3 3.5 3 1 2 2 2 3 2 4 2
;
ods graphics on / reset=index imagefmt=gif antialias height=5in width=5in;  
proc sgplot data=stars noautolegend noborder pad=0 aspect=1;
styleattrs datacontrastcolors=(CX085411 hotpink);
symbolchar name=uniStar char='2605'x;      /* Unicode for 5-pointed star */
symbolchar name=uniRectangle char='25AE'x; /* Unicode for vertical rectangle */
xaxis display=none offsetmin=0 offsetmax=0 values=(0 5);
yaxis display=none offsetmin=0 offsetmax=0 values=(.005 5);
scatter x=x y=y /                          /* Stars */
        markerattrs=(symbol=unistar size=116pt) group=color; 
scatter x=xStand y=yStand /                /* Tree stand */
        markerattrs=(symbol=unirectangle color=CX085411 size=116pt);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 10 Dec 2017 22:47:51 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2017-12-10T22:47:51Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: A '2605'x, a '2605'x / Dancing in the night</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-A-2605-x-a-2605-x-Dancing-in-the-night/m-p/419982#M14470</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AstarAstar.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17125i120F5DC835391FB2/image-size/large?v=v2&amp;amp;px=999" role="button" title="AstarAstar.gif" alt="AstarAstar.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick SAS ODS Graphics take on &lt;A href="https://www.northstory.ca" target="_self"&gt;Northstory.ca&lt;/A&gt;'s clever &lt;A href="https://www.northstory.ca/modern-christmas-cards/" target="_self"&gt;Modern Christmas Cards&lt;/A&gt; DIY project. 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: A '2605'x, a '2605'x / Dancing in the night;

data stars;                                /* Create points for scatter plots */
input x y@@;                               /* Read x-y pairs of points for "stars" */
if x=3 &amp;amp; y=4 then color=2; else color=1;   /* Assign different color to one star */
y=y*.85;                                   /* Tighten up y-axis a smidgen */
xStand=2.5;                                /* Add points for "tree stand" */
yStand=1*.85;
datalines;
2.5 5 2 4 3 4 1.5 3 2.5 3 3.5 3 1 2 2 2 3 2 4 2
;
ods graphics on / reset=index imagefmt=gif antialias height=5in width=5in;  
proc sgplot data=stars noautolegend noborder pad=0 aspect=1;
styleattrs datacontrastcolors=(CX085411 hotpink);
symbolchar name=uniStar char='2605'x;      /* Unicode for 5-pointed star */
symbolchar name=uniRectangle char='25AE'x; /* Unicode for vertical rectangle */
xaxis display=none offsetmin=0 offsetmax=0 values=(0 5);
yaxis display=none offsetmin=0 offsetmax=0 values=(.005 5);
scatter x=x y=y /                          /* Stars */
        markerattrs=(symbol=unistar size=116pt) group=color; 
scatter x=xStand y=yStand /                /* Tree stand */
        markerattrs=(symbol=unirectangle color=CX085411 size=116pt);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Dec 2017 22:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-A-2605-x-a-2605-x-Dancing-in-the-night/m-p/419982#M14470</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2017-12-10T22:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: A '2605'x, a '2605'x / Dancing in the night</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-A-2605-x-a-2605-x-Dancing-in-the-night/m-p/420386#M14478</link>
      <description>&lt;P&gt;Perhaps worth pointing out that you need to run this under 9.4.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Dec 2017 08:44:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-A-2605-x-a-2605-x-Dancing-in-the-night/m-p/420386#M14478</guid>
      <dc:creator>lethcons</dc:creator>
      <dc:date>2017-12-12T08:44:11Z</dc:date>
    </item>
  </channel>
</rss>

