<?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: Paint-By-Numbers Xmas Tree in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Paint-By-Numbers-Xmas-Tree/m-p/909568#M24277</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaintByNumbersXmasTreeColor.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92048i2D3A7902702ACF3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaintByNumbersXmasTreeColor.png" alt="PaintByNumbersXmasTreeColor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A &lt;A href="https://en.wikipedia.org/wiki/KISS_principle" target="_self"&gt;KISS&lt;/A&gt; SAS ODS Graphics take on a &lt;A href="https://www.dezeen.com/2019/12/24/christmas-cards-architects-designers-2019/" target="_self"&gt;lovely 2019 Christmas card by&amp;nbsp;Normann Copenhagen&lt;/A&gt;. Happy Holidays, all!&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: Paint-By-Numbers Xmas Tree
  Inspired by Normann Copenhagen card at dezeen.com/2019/12/24/christmas-cards-architects-designers-2019;

data;                                   * "Tree" is pyramid of numbers 1-25, * = new line);
retain x 0 y 0 tree '1*234*56789*1011213*1415161718*192021222324*25';
                                        
ods graphics / height=5in width=5in;    * Plot the "tree" (text plot);
proc sgplot aspect=1 nowall noborder pad=0;
styleattrs backcolor=cx1C5240;          * Xmas tree green;
text x=x y=y text=tree / splitchar='*' splitpolicy=splitalways strip 
                         textattrs=(color=white weight=bold size=36pt);
xaxis display=none; yaxis display=none; * Suppress axes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PRIOR TO "TOUCH-UP"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaintByNumbersXmasTreeBW.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92049i042E159A88C6AA0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaintByNumbersXmasTreeBW.png" alt="PaintByNumbersXmasTreeBW.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 23 Dec 2023 14:54:01 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2023-12-23T14:54:01Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Paint-By-Numbers Xmas Tree</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Paint-By-Numbers-Xmas-Tree/m-p/909568#M24277</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaintByNumbersXmasTreeColor.png" style="width: 480px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92048i2D3A7902702ACF3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="PaintByNumbersXmasTreeColor.png" alt="PaintByNumbersXmasTreeColor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A &lt;A href="https://en.wikipedia.org/wiki/KISS_principle" target="_self"&gt;KISS&lt;/A&gt; SAS ODS Graphics take on a &lt;A href="https://www.dezeen.com/2019/12/24/christmas-cards-architects-designers-2019/" target="_self"&gt;lovely 2019 Christmas card by&amp;nbsp;Normann Copenhagen&lt;/A&gt;. Happy Holidays, all!&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: Paint-By-Numbers Xmas Tree
  Inspired by Normann Copenhagen card at dezeen.com/2019/12/24/christmas-cards-architects-designers-2019;

data;                                   * "Tree" is pyramid of numbers 1-25, * = new line);
retain x 0 y 0 tree '1*234*56789*1011213*1415161718*192021222324*25';
                                        
ods graphics / height=5in width=5in;    * Plot the "tree" (text plot);
proc sgplot aspect=1 nowall noborder pad=0;
styleattrs backcolor=cx1C5240;          * Xmas tree green;
text x=x y=y text=tree / splitchar='*' splitpolicy=splitalways strip 
                         textattrs=(color=white weight=bold size=36pt);
xaxis display=none; yaxis display=none; * Suppress axes;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PRIOR TO "TOUCH-UP"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaintByNumbersXmasTreeBW.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92049i042E159A88C6AA0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaintByNumbersXmasTreeBW.png" alt="PaintByNumbersXmasTreeBW.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Dec 2023 14:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Paint-By-Numbers-Xmas-Tree/m-p/909568#M24277</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2023-12-23T14:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Paint-By-Numbers Xmas Tree</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Paint-By-Numbers-Xmas-Tree/m-p/909627#M24278</link>
      <description>&lt;P&gt;Just follow &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4628"&gt;@tc&lt;/a&gt; 's post.&lt;/P&gt;
&lt;P&gt;Merry Christmas to all&amp;nbsp; and Happy New Year !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
do x=0.01 to 80 by 0.1;
 y1=sin(x)  /x**1.5; x11=x+30;y11=0.8*y1; x21=x+60;y21=0.6*y1; x31=x+90;y31=0.4*y1;x41=x+120;y41=0.2*y1;
 y2=sin(x+1)/x**1.5; x12=x+30;y12=0.8*y2; x22=x+60;y22=0.6*y2; x32=x+90;y32=0.4*y2;x42=x+120;y42=0.2*y2;
 y3=sin(x+2)/x**1.5; x13=x+30;y13=0.8*y3; x23=x+60;y23=0.6*y3; x33=x+90;y33=0.4*y3;x43=x+120;y43=0.2*y3;
 y4=sin(x+3)/x**1.5; x14=x+30;y14=0.8*y4; x24=x+60;y24=0.6*y4; x34=x+90;y34=0.4*y4;x44=x+120;y44=0.2*y4;
 y5=sin(x+4)/x**1.5; x15=x+30;y15=0.8*y5; x25=x+60;y25=0.6*y5; x35=x+90;y35=0.4*y5;x45=x+120;y45=0.2*y5;

 
 if x&amp;gt;10 then output;
end;

call missing(of _all_);
star_x=0;star_y=190;output;

call missing(of _all_);
bar_x=0;bar_y=0;marker='|';output;
run;

proc sgplot data=x noautolegend noborder;
scatter x=bar_x  y=bar_y/markerchar=marker markercharattrs=(size=30 color=black) dataskin=pressed;

series y=x x=y1/lineattrs=(color=green) ;
series y=x x=y2/lineattrs=(color=green) ;
series y=x x=y3/lineattrs=(color=green) ;
series y=x x=y4/lineattrs=(color=green) ;
series y=x x=y5/lineattrs=(color=green) ;

series y=x11 x=y11/lineattrs=(color=green) ;
series y=x12 x=y12/lineattrs=(color=green) ;
series y=x13 x=y13/lineattrs=(color=green) ;
series y=x14 x=y14/lineattrs=(color=green) ;
series y=x15 x=y15/lineattrs=(color=green) ;

series y=x21 x=y21/lineattrs=(color=green) ;
series y=x22 x=y22/lineattrs=(color=green) ;
series y=x23 x=y23/lineattrs=(color=green) ;
series y=x24 x=y24/lineattrs=(color=green) ;
series y=x25 x=y25/lineattrs=(color=green) ;

series y=x31 x=y31/lineattrs=(color=green) ;
series y=x32 x=y32/lineattrs=(color=green) ;
series y=x33 x=y33/lineattrs=(color=green) ;
series y=x34 x=y34/lineattrs=(color=green) ;
series y=x35 x=y35/lineattrs=(color=green) ;

series y=x41 x=y41/lineattrs=(color=green) ;
series y=x42 x=y42/lineattrs=(color=green) ;
series y=x43 x=y43/lineattrs=(color=green) ;
series y=x44 x=y44/lineattrs=(color=green) ;
series y=x45 x=y45/lineattrs=(color=green)  ;

scatter x=star_x y=star_y/markerattrs=(symbol=starfilled size=40 color=gold) dataskin=pressed;
xaxis display=none;
yaxis display=none;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1703495490453.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/92062iF1F9948F632CE256/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1703495490453.png" alt="Ksharp_0-1703495490453.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Dec 2023 09:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Paint-By-Numbers-Xmas-Tree/m-p/909627#M24278</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-12-25T09:11:50Z</dc:date>
    </item>
  </channel>
</rss>

