<?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: Working 9 to 17 in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Working-9-to-17/m-p/892564#M24077</link>
    <description>&lt;P&gt;Tweak formula to &lt;STRONG&gt;angle&lt;/STRONG&gt;=360-hour/24*360&lt;STRONG&gt;-180*(7&amp;lt;=hour&amp;lt;=17)&lt;/STRONG&gt;&amp;nbsp;to make bottom hours right-side up like this neat&amp;nbsp;Svalbard Arctic FL24 watch.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Working9to17v2.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87600i1C3B7E95A5FAFB16/image-size/small?v=v2&amp;amp;px=200" role="button" title="Working9to17v2.png" alt="Working9to17v2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SVALBARD_ARCTIC_FL24.jpg" style="width: 138px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87601iA2BC6D0B95FD0FA0/image-size/small?v=v2&amp;amp;px=200" role="button" title="SVALBARD_ARCTIC_FL24.jpg" alt="SVALBARD_ARCTIC_FL24.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Sep 2023 15:06:32 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2023-09-04T15:06:32Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Working 9 to 17</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Working-9-to-17/m-p/892517#M24076</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Working9to17.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87593iFBC2174FF397C77E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Working9to17.png" alt="Working9to17.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working 9 to 17 is the new working &lt;A href="https://en.wikipedia.org/wiki/9_to_5_(film)" target="_self"&gt;9 to 5&lt;/A&gt;. Happy Labor Day!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* Fun With SAS ODS Graphics: Working 9 to 17 (Labor Day 2023);

data clock;                                        * Generate points for chart;
pi=constant('pi');                                    
do hour=0 to 23;                                   * Generate points for 24 hours;
  Xhr=sin(hour/24*2*pi);                           * X, Y for hour numbers;
  Yhr=cos(hour/24*2*pi);
  Xm=.9*Xhr;                                       * X, Y for hour markers (circles);                                      
  Ym=.9*Yhr;
  txt=compress(put(hour,2.));                      * Convert hour to text;
  angle=360-hour/24*360;                           * Compute angle to display hour on perpindicular;                
  output;
end;
txt2="HAPPY*LABOR DAY!"; x2=0; y2=0; output;       * Put Happy Labor Day message in center of circle;
Xhr=.; xm=.; x2=.;                                 * Generate a polygon to shade hours between 9 to 17 ("9 to 5" job!);
id=1; x9to17=0; y9to17=0; output;                  * Start polygon at center (0,0);
do hour=9 to 17 by .1;                             * Add points on circle from hours 9 to 17;
  x9to17=1.15*sin(hour/24*2*pi);            
  y9to17=1.15*cos(hour/24*2*pi);
  output;
end; 
                                                   * Generate the "Working 9 to 17" chart; 
ods graphics on / reset antialias height=6in width=6in;
proc sgplot data=clock aspect=1 noautolegend noborder subpixel; 
polygon x=x9to17 y=y9to17 id=id / fill fillattrs=(color=lightgrey) lineattrs=(color=lightgrey); * Shade hours between 9 and 17;
scatter x=Xm y=Ym / markerattrs=(symbol=circlefilled size=8pt); * Add hour markers (circles);                               
ellipseparm semimajor=1.15 semiminor=1.15 / nofill lineattrs=(color=black thickness=3pt); * Draw circle border;
text x=Xhr y=Yhr text=txt / rotate=angle contributeoffsets=none strip textattrs=(size=20pt weight=bold); * Draw hours at an angle;
text x=x2 y=y2 text=txt2 / contributeoffsets=none strip textattrs=(size=32pt weight=bold) splitchar='*' splitpolicy=splitalways; * Happy Labor Day message;
xaxis display=none;                                * Suppress axes;
yaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 08:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Working-9-to-17/m-p/892517#M24076</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2023-09-04T08:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Working 9 to 17</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Working-9-to-17/m-p/892564#M24077</link>
      <description>&lt;P&gt;Tweak formula to &lt;STRONG&gt;angle&lt;/STRONG&gt;=360-hour/24*360&lt;STRONG&gt;-180*(7&amp;lt;=hour&amp;lt;=17)&lt;/STRONG&gt;&amp;nbsp;to make bottom hours right-side up like this neat&amp;nbsp;Svalbard Arctic FL24 watch.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Working9to17v2.png" style="width: 200px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87600i1C3B7E95A5FAFB16/image-size/small?v=v2&amp;amp;px=200" role="button" title="Working9to17v2.png" alt="Working9to17v2.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SVALBARD_ARCTIC_FL24.jpg" style="width: 138px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/87601iA2BC6D0B95FD0FA0/image-size/small?v=v2&amp;amp;px=200" role="button" title="SVALBARD_ARCTIC_FL24.jpg" alt="SVALBARD_ARCTIC_FL24.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Sep 2023 15:06:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Working-9-to-17/m-p/892564#M24077</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2023-09-04T15:06:32Z</dc:date>
    </item>
  </channel>
</rss>

