<?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: Fun with SAS ODS Graphics: Total eclipse of the sun edition in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389407#M13339</link>
    <description>&lt;P&gt;Great, Sanjay, but now I'll go blind because I looked at your animation without eye protection. Shame on you for not posting a warning!&lt;/P&gt;</description>
    <pubDate>Sun, 20 Aug 2017 20:54:59 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-08-20T20:54:59Z</dc:date>
    <item>
      <title>Fun with SAS ODS Graphics: Total eclipse of the sun edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389326#M13336</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ECLIPSE.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14558iC4FB41B28835C32E/image-size/large?v=v2&amp;amp;px=999" role="button" title="ECLIPSE.png" alt="ECLIPSE.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With Monday nearing, &lt;A href="https://en.wikipedia.org/wiki/Solar_eclipse" target="_self"&gt;solar eclipse&lt;/A&gt; fever is hitting new heights. So, figured I'd &lt;A href="http://blogs.sas.com/content/sastraining/2017/08/02/is-your-city-in-the-path-of-the-total-eclipse/" target="_self"&gt;follow Robert Allison’s lead&lt;/A&gt; and join the frenzy with some eclipse-themed SAS code. Here's my quick SAS ODS Graphics take on &lt;A href="http://forum.timescapes.org/phpBB3/viewtopic.php?f=4&amp;amp;t=7775" target="_self"&gt;solar eclipse time-lapse photography&lt;/A&gt; - put on your &lt;A href="http://www.adlerplanetarium.org/equippedtoeclipse/instagram-contest/" target="_self"&gt;ISO certified glasses&lt;/A&gt; before viewing the output, kids!&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: Solar Eclipse "Time-Lapse" (SGPANEL + BUBBLE Plots)

  Inspired by forum.timescapes.org/phpBB3/viewtopic.php?f=4&amp;amp;t=7775;
 
data eclipse;                                /* Generate points for sun/moon */
do frame=1 to 11;                            /* At 11 different times/locations */
  sunX=.5; sunY=.5; sz=50; output;           /* Sun plotted at constant position in frame */
  sunX=.; sunY=.;
  if frame&amp;lt;=6 then                           /* Sun goes behind moon in first 6 frames */
    moonX=.5+(6-frame)*(.775/5);
  else                                       /* Sun emerges from behind moon in last 5 frames */
    moonX=.5-(frame-6)*(.775/5);
  moonY=.5; sz=40; output;                   /* Make moon slightly smaller bubble than sun */
  moonX=.; moonY=.;
  sz=1; output;                              /* "Dummy" points with size=1 make sun/moon bigger */
end;
 
ods listing gpath='/folders/myfolders';      /* Use SGPANEL to plot frames in one image */
ods graphics on / reset antialias width=10in height=1in imagename="ECLIPSE";

proc sgpanel data=eclipse noautolegend;      /* "Time-lapse" is 1x11 panel of bubble plots */
styleattrs backcolor=black wallcolor=black;
panelby frame / rows=1 columns=11 onepanel noheader noheaderborder noborder;
bubble x=sunX y=sunY size=sz / colormodel=(yelloworange) colorresponse=sunX dataskin=sheen bradiusmax=50;
bubble x=moonX y=moonY size=sz / colormodel=(black) colorresponse=moonX dataskin=sheen bradiusmax=50;
rowaxis display=none; 
colaxis display=none values=(0 to 1) min=0 max=1 offsetmin=0 offsetmax=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 16:21:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389326#M13336</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2017-08-19T16:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Total eclipse of the sun edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389334#M13337</link>
      <description>&lt;P&gt;Awesome, TC. &amp;nbsp;Great demonstration of using SG procedures for non-standard visuals. &amp;nbsp;You could probably use FRAME as the BY variable with SGPLOT, and create an animated GIF or SVG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example code for animation using printerpath: &amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/05/23/animation-using-sgplot/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2013/05/23/animation-using-sgplot/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2017 17:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389334#M13337</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-08-19T17:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Total eclipse of the sun edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389393#M13338</link>
      <description>&lt;P&gt;&lt;EM&gt;Editor's note: This is a great addition to the original post.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Building on Ted's work:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2017/08/20/fun-ods-graphics-eclipse-animation/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2017/08/20/fun-ods-graphics-eclipse-animation/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Added some stars.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Eclipse_Stars_Anim.gif" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/14569iE324FD8B698A7096/image-size/large?v=v2&amp;amp;px=999" role="button" title="Eclipse_Stars_Anim.gif" alt="Eclipse_Stars_Anim.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Oct 2017 14:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389393#M13338</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-10-04T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Total eclipse of the sun edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389407#M13339</link>
      <description>&lt;P&gt;Great, Sanjay, but now I'll go blind because I looked at your animation without eye protection. Shame on you for not posting a warning!&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2017 20:54:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389407#M13339</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-20T20:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Fun with SAS ODS Graphics: Total eclipse of the sun edition</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389462#M13344</link>
      <description>&lt;P&gt;Very very cool &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4628"&gt;@tc&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54&lt;/a&gt;. I am located in Denmark, so no eclipse for me, but yours will do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 06:42:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-with-SAS-ODS-Graphics-Total-eclipse-of-the-sun-edition/m-p/389462#M13344</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-08-21T06:42:19Z</dc:date>
    </item>
  </channel>
</rss>

