<?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: International Women’s Day 2024 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Fun-With-SAS-ODS-Graphics-International-Women-s-Day-2024/m-p/919479#M362158</link>
    <description>&lt;P&gt;Today we have March 8ht, so its&amp;nbsp;International Women’s Day.&lt;/P&gt;
&lt;P&gt;Bart&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-center" image-alt="kwiat2024.gif" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94495iB035F2286EA25A28/image-size/large?v=v2&amp;amp;px=999" role="button" title="kwiat2024.gif" alt="kwiat2024.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro kwiat(s,e,b,min=0,max=256,c=constant('pi'));
  %do i = &amp;amp;s. %to &amp;amp;e. %by &amp;amp;b.;
    data have;
      v=0.01;
      w=1;
      c=-1;

      do a=1,2,3,4,5;
        do y = -3*constant('pi') to -2 by 0.1;
          x1 = a*sin(y)/(10/y);
          output;
        end;
      end;
      x0 = .;

      do y = -4*constant('pi') to 0 by 0.1;
        x1 = sin(y)/10;
        output;
      end;
      x1 = .;

      w = &amp;amp;i.;
      do t = &amp;amp;min. to &amp;amp;max. by 0.5;
        c = &amp;amp;c. * sin(t);
        x3 = (v*t+c) * cos(w*t);
        y = (v*t+c) * sin(w*t);
        output;
      end;
      x3 = .;

      do t = 0 to 256 by 0.1;
        c = sin(t);
        w = 1;
        x2 =  - (v*t+c) * cos(w*t) + 0.3;
        w = 2;
        y = (v*t+c) * sin(w*t) - 6.5;
        output;
      end;
    run;

    /*ods graphics / height=1000px width=500px antialias=yes antialiasmax=100000;*/
    title "International Women’s Day 2024";
    proc sgplot data=have noborder noautolegend nowall PAD=0;
      series x=x1 y=y / LINEATTRS=(color=green thickness=8);
      series x=x1 y=y / LINEATTRS=(color=lightgreen thickness=5) transparency=0.5;

      series x=x2 y=y / LINEATTRS=(color=gold thickness=2) transparency=0.2;

      series x=x3 y=y / LINEATTRS=(color=white thickness=6) transparency=0.5;
      series x=x3 y=y / LINEATTRS=(color=pink thickness=4) transparency=0.25;
      series x=x3 y=y / LINEATTRS=(color=purple thickness=2);

      xaxis display=none min=-7 max=7;
      yaxis display=none min=-16 max=7;
    run;
  %end;
%mend kwiat;



ods _all_ close;                       
options papersize=('500 px','1000 px') 
        printerpath=gif 
        animation=start 
        nodate 
        nonumber 
        animloop=YES 
        noanimoverlay 
        animduration=.2;

ods printer file='R:/kwiat2024.gif';

ods graphics on / reset height=1000px width=500px antialias=yes antialiasmax=100000 imagefmt=GIF;

%kwiat(25,125,25,max=362)

options printerpath=gif animation=stop;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 08 Mar 2024 15:27:46 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2024-03-08T15:27:46Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: International Women’s Day 2024</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Fun-With-SAS-ODS-Graphics-International-Women-s-Day-2024/m-p/919479#M362158</link>
      <description>&lt;P&gt;Today we have March 8ht, so its&amp;nbsp;International Women’s Day.&lt;/P&gt;
&lt;P&gt;Bart&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-center" image-alt="kwiat2024.gif" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94495iB035F2286EA25A28/image-size/large?v=v2&amp;amp;px=999" role="button" title="kwiat2024.gif" alt="kwiat2024.gif" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro kwiat(s,e,b,min=0,max=256,c=constant('pi'));
  %do i = &amp;amp;s. %to &amp;amp;e. %by &amp;amp;b.;
    data have;
      v=0.01;
      w=1;
      c=-1;

      do a=1,2,3,4,5;
        do y = -3*constant('pi') to -2 by 0.1;
          x1 = a*sin(y)/(10/y);
          output;
        end;
      end;
      x0 = .;

      do y = -4*constant('pi') to 0 by 0.1;
        x1 = sin(y)/10;
        output;
      end;
      x1 = .;

      w = &amp;amp;i.;
      do t = &amp;amp;min. to &amp;amp;max. by 0.5;
        c = &amp;amp;c. * sin(t);
        x3 = (v*t+c) * cos(w*t);
        y = (v*t+c) * sin(w*t);
        output;
      end;
      x3 = .;

      do t = 0 to 256 by 0.1;
        c = sin(t);
        w = 1;
        x2 =  - (v*t+c) * cos(w*t) + 0.3;
        w = 2;
        y = (v*t+c) * sin(w*t) - 6.5;
        output;
      end;
    run;

    /*ods graphics / height=1000px width=500px antialias=yes antialiasmax=100000;*/
    title "International Women’s Day 2024";
    proc sgplot data=have noborder noautolegend nowall PAD=0;
      series x=x1 y=y / LINEATTRS=(color=green thickness=8);
      series x=x1 y=y / LINEATTRS=(color=lightgreen thickness=5) transparency=0.5;

      series x=x2 y=y / LINEATTRS=(color=gold thickness=2) transparency=0.2;

      series x=x3 y=y / LINEATTRS=(color=white thickness=6) transparency=0.5;
      series x=x3 y=y / LINEATTRS=(color=pink thickness=4) transparency=0.25;
      series x=x3 y=y / LINEATTRS=(color=purple thickness=2);

      xaxis display=none min=-7 max=7;
      yaxis display=none min=-16 max=7;
    run;
  %end;
%mend kwiat;



ods _all_ close;                       
options papersize=('500 px','1000 px') 
        printerpath=gif 
        animation=start 
        nodate 
        nonumber 
        animloop=YES 
        noanimoverlay 
        animduration=.2;

ods printer file='R:/kwiat2024.gif';

ods graphics on / reset height=1000px width=500px antialias=yes antialiasmax=100000 imagefmt=GIF;

%kwiat(25,125,25,max=362)

options printerpath=gif animation=stop;
ods printer close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Mar 2024 15:27:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Fun-With-SAS-ODS-Graphics-International-Women-s-Day-2024/m-p/919479#M362158</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-03-08T15:27:46Z</dc:date>
    </item>
  </channel>
</rss>

