<?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 A Belated Happy (x**2+y**2-1)**3-x**2*y**3=0 Day! in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/250016#M9056</link>
    <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1887i6D99C2F17D017140/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="BeMine.png" title="BeMine.png" /&gt;&lt;/P&gt;
&lt;PRE&gt;* Generate x,y pairs to closely fit Valentine equation: (x**2+y**2-1)**3-x**2*y**3=0;

data pts;
do x=-2 to 2 by .001;
  do y=-2 to 2 by .001;
    delta=abs((x**2+y**2-1)**3-x**2*y**3);
    if delta&amp;lt;=.00015 then do;                   * Keep closest matches; 
     a=atan2(y,x);
     output;
     end;
   end;
 end;

* Sort in angle order for polygon plot;
 
 proc sort data=pts out=pts1;
 by a delta x;
 
 data pts2;
 set pts1;
 by a;
 if first.a;                                   * Keep closest match;
 id="BE*MINE";                                 * Message for heart;
 
proc sort data=pts2; 
by a;

* Plot polygon (not quite right, but flaws look like chipped candy!);
 
proc sgplot data=pts2 aspect=1;
polygon id=id x=x y=y / fill fillattrs=(color=pink) dataskin=matte splitchar='*' 
        label=id labelattrs=(size=50pt COLOR=lightred weight=bold);
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Feb 2016 05:16:51 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2016-02-15T05:16:51Z</dc:date>
    <item>
      <title>A Belated Happy (x**2+y**2-1)**3-x**2*y**3=0 Day!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/250016#M9056</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1887i6D99C2F17D017140/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="BeMine.png" title="BeMine.png" /&gt;&lt;/P&gt;
&lt;PRE&gt;* Generate x,y pairs to closely fit Valentine equation: (x**2+y**2-1)**3-x**2*y**3=0;

data pts;
do x=-2 to 2 by .001;
  do y=-2 to 2 by .001;
    delta=abs((x**2+y**2-1)**3-x**2*y**3);
    if delta&amp;lt;=.00015 then do;                   * Keep closest matches; 
     a=atan2(y,x);
     output;
     end;
   end;
 end;

* Sort in angle order for polygon plot;
 
 proc sort data=pts out=pts1;
 by a delta x;
 
 data pts2;
 set pts1;
 by a;
 if first.a;                                   * Keep closest match;
 id="BE*MINE";                                 * Message for heart;
 
proc sort data=pts2; 
by a;

* Plot polygon (not quite right, but flaws look like chipped candy!);
 
proc sgplot data=pts2 aspect=1;
polygon id=id x=x y=y / fill fillattrs=(color=pink) dataskin=matte splitchar='*' 
        label=id labelattrs=(size=50pt COLOR=lightred weight=bold);
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2016 05:16:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/250016#M9056</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2016-02-15T05:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: A Belated Happy (x**2+y**2-1)**3-x**2*y**3=0 Day!</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/250324#M9078</link>
      <description>&lt;P&gt;this is great!! &amp;nbsp;I will file it away!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2016 13:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/250324#M9078</guid>
      <dc:creator>LauraRK</dc:creator>
      <dc:date>2016-02-16T13:57:26Z</dc:date>
    </item>
    <item>
      <title>A Little "Cosmetic Heart Surgery"</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/251967#M9117</link>
      <description>&lt;P&gt;In response to &lt;A href="https://listserv.uga.edu/cgi-bin/wa?A2=SAS-L;3c0e1564.1602c" target="_self"&gt;my cry for help&amp;nbsp;on SAS-L&lt;/A&gt;, Rick Wicklin suggested that if I didn't want to delve into&amp;nbsp;the world of algebraic geometry just yet, I could probably&amp;nbsp;obtain&amp;nbsp;a better plot simply&amp;nbsp;by finagling around the problematic x=0 and y=0 points,&amp;nbsp;which indeed did&amp;nbsp;the trick (thanks, Rick!).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before and after images, together with the two lines of code that were tweaked to address&amp;nbsp;the "crumbling" at the top and sides of the "before" Valentine:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/2007i710F3D2C379CE774/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="CosmeticHeartSurgery.png" title="CosmeticHeartSurgery.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2016 06:41:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/A-Belated-Happy-x-2-y-2-1-3-x-2-y-3-0-Day/m-p/251967#M9117</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2016-02-24T06:41:48Z</dc:date>
    </item>
  </channel>
</rss>

