<?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: Happy Mother's Day Wooden Block Greetings in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Mother-s-Day-Wooden-Block/m-p/875604#M23787</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MomColor.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83944i890A394D25FECE8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="MomColor.png" alt="MomColor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_038/grstatproc/n175gq401rl7e0n12provrqp9v6q.htm" target="_self"&gt;SAS ODS Graphics annotation&lt;/A&gt; take on those &lt;A href="https://www.melissaanddoug.com/products/classic-abc-block-cart" target="_self"&gt;classic wooden ABC blocks&lt;/A&gt;. Happy Mother's Day, 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: Happy Mother's Day Wooden Block Greetings;

data point;                                                              /* Need data to create a "dummy" scatter plot that we can annootate */
retain x y 0;

%SGANNO;                                                                 /* Use SAS ODS Graphics annotate macros to create "wooden blocks" */                                          
data rectangles;                                                         /* Create 3 ABC blocks (M-O-M) with bright-colored rounded borders/letters &amp;amp; light wood-color background */                                  
%SGIMAGE (image="/home/ted.conway/babyblue.png", layer="BACK");          /* Background image of babies + moms by Reuben Saidman (commons.wikimedia.org/wiki/File:Baby_show_(3588770019).jpg) *//

%macro Block(letter, color, x=, y=);                                     /* Macro to draw an ABC "block", specify a letter, color, origin (x,y) */
%SGRECTANGLE (height=2, width=2, x1=&amp;amp;x, y1=&amp;amp;y, fillcolor="&amp;amp;color", reset="ALL", cornerradius=.15, drawspace="DATAVALUE", display="fill", HEIGHTUNIT="DATA", WIDTHUNIT="DATA"); /* Color border */
%SGRECTANGLE (height=1.6, width=1.6, x1=&amp;amp;x, y1=&amp;amp;y, fillcolor="cxfff8dc", cornerradius=.15, drawspace="DATAVALUE", display="fill", HEIGHTUNIT="DATA", WIDTHUNIT="DATA");  /* Wood interior */ 
%SGTEXT (label="&amp;amp;letter", FILLTRANSPARENCY=1, x1=&amp;amp;x, y1=&amp;amp;y, textcolor="&amp;amp;color", border="false", textsize=96, textweight="BOLD", drawspace="DATAVALUE"); /* Color text */
%mend;                                                                    
                                                                         /* Stacked blocks that spell M-O-M */
%Block(M, Navy, x=-.4, y=3.6); %Block(O, Red, x=-.4, y=1.5); %Block(M, Green, x=-.4, y=-.6);

ods graphics / antialias height=6in width=6in;                           /* Plot the blocks! */
proc sgplot data=point aspect=1 sganno=rectangles nowall noborder pad=0; /* Dummy scatter plot + annotate dataset to draw the blocks and create background */
scatter x=x y=y / markerattrs=(size=0pt);                                /* Dummy plot with marker size of zero to make it invisible */
inset "HAPPY  " "MOTHER'S  " "DAY!  " / position=right  textattrs=(size=36pt weight=bold color=darkslateblue); /* Happy Mother's Day! greeting inset */
xaxis display=none min=-1.5 max=5; yaxis display=none min=-1.5 max=5;   /* Limit axes bounds, suppress axes labels/lines/values */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CHART (BEFORE SAS CODE TWEAKING)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MomBW.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83945iFACCB2613A661F20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MomBW.png" alt="MomBW.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BACKGROUND IMAGE (BEFORE MS-WORD DOCTORING)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Baby_show_(3588770019).jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83946i7CF7B15F9DA1C63D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Baby_show_(3588770019).jpg" alt="Baby_show_(3588770019).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Source: &lt;A href="https://commons.wikimedia.org/wiki/File:Baby_show_(3588770019).jpg" target="_self"&gt;Wikimedia Commons,&amp;nbsp;&lt;SPAN&gt;Reuben Saidman&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 13 May 2023 17:42:56 GMT</pubDate>
    <dc:creator>tc</dc:creator>
    <dc:date>2023-05-13T17:42:56Z</dc:date>
    <item>
      <title>Fun With SAS ODS Graphics: Happy Mother's Day Wooden Block Greetings</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Mother-s-Day-Wooden-Block/m-p/875604#M23787</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MomColor.png" style="width: 576px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83944i890A394D25FECE8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="MomColor.png" alt="MomColor.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A quick &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/v_038/grstatproc/n175gq401rl7e0n12provrqp9v6q.htm" target="_self"&gt;SAS ODS Graphics annotation&lt;/A&gt; take on those &lt;A href="https://www.melissaanddoug.com/products/classic-abc-block-cart" target="_self"&gt;classic wooden ABC blocks&lt;/A&gt;. Happy Mother's Day, 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: Happy Mother's Day Wooden Block Greetings;

data point;                                                              /* Need data to create a "dummy" scatter plot that we can annootate */
retain x y 0;

%SGANNO;                                                                 /* Use SAS ODS Graphics annotate macros to create "wooden blocks" */                                          
data rectangles;                                                         /* Create 3 ABC blocks (M-O-M) with bright-colored rounded borders/letters &amp;amp; light wood-color background */                                  
%SGIMAGE (image="/home/ted.conway/babyblue.png", layer="BACK");          /* Background image of babies + moms by Reuben Saidman (commons.wikimedia.org/wiki/File:Baby_show_(3588770019).jpg) *//

%macro Block(letter, color, x=, y=);                                     /* Macro to draw an ABC "block", specify a letter, color, origin (x,y) */
%SGRECTANGLE (height=2, width=2, x1=&amp;amp;x, y1=&amp;amp;y, fillcolor="&amp;amp;color", reset="ALL", cornerradius=.15, drawspace="DATAVALUE", display="fill", HEIGHTUNIT="DATA", WIDTHUNIT="DATA"); /* Color border */
%SGRECTANGLE (height=1.6, width=1.6, x1=&amp;amp;x, y1=&amp;amp;y, fillcolor="cxfff8dc", cornerradius=.15, drawspace="DATAVALUE", display="fill", HEIGHTUNIT="DATA", WIDTHUNIT="DATA");  /* Wood interior */ 
%SGTEXT (label="&amp;amp;letter", FILLTRANSPARENCY=1, x1=&amp;amp;x, y1=&amp;amp;y, textcolor="&amp;amp;color", border="false", textsize=96, textweight="BOLD", drawspace="DATAVALUE"); /* Color text */
%mend;                                                                    
                                                                         /* Stacked blocks that spell M-O-M */
%Block(M, Navy, x=-.4, y=3.6); %Block(O, Red, x=-.4, y=1.5); %Block(M, Green, x=-.4, y=-.6);

ods graphics / antialias height=6in width=6in;                           /* Plot the blocks! */
proc sgplot data=point aspect=1 sganno=rectangles nowall noborder pad=0; /* Dummy scatter plot + annotate dataset to draw the blocks and create background */
scatter x=x y=y / markerattrs=(size=0pt);                                /* Dummy plot with marker size of zero to make it invisible */
inset "HAPPY  " "MOTHER'S  " "DAY!  " / position=right  textattrs=(size=36pt weight=bold color=darkslateblue); /* Happy Mother's Day! greeting inset */
xaxis display=none min=-1.5 max=5; yaxis display=none min=-1.5 max=5;   /* Limit axes bounds, suppress axes labels/lines/values */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;CHART (BEFORE SAS CODE TWEAKING)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MomBW.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83945iFACCB2613A661F20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MomBW.png" alt="MomBW.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;BACKGROUND IMAGE (BEFORE MS-WORD DOCTORING)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Baby_show_(3588770019).jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/83946i7CF7B15F9DA1C63D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Baby_show_(3588770019).jpg" alt="Baby_show_(3588770019).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Source: &lt;A href="https://commons.wikimedia.org/wiki/File:Baby_show_(3588770019).jpg" target="_self"&gt;Wikimedia Commons,&amp;nbsp;&lt;SPAN&gt;Reuben Saidman&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 13 May 2023 17:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Mother-s-Day-Wooden-Block/m-p/875604#M23787</guid>
      <dc:creator>tc</dc:creator>
      <dc:date>2023-05-13T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Fun With SAS ODS Graphics: Happy Mother's Day Wooden Block Greetings</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Mother-s-Day-Wooden-Block/m-p/990066#M25948</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Fun With SAS ODS Graphics: Happy Mother's Day Wooden Block Greetings&lt;/STRONG&gt; demonstrates how SAS ODS Graphics can be used to create visually appealing and personalized greeting designs using data visualization techniques. By combining graphics, text, and creative formatting, users can generate a unique Mother's Day greeting featuring wooden block-style elements. This example highlights the flexibility of SAS ODS Graphics in producing custom designs and showcases how SAS can be used beyond traditional data analysis to create engaging visual content.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.techleinnovations.com/woodle-wooden-homes" target="_self"&gt;Wooden Cottages&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jun 2026 09:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Fun-With-SAS-ODS-Graphics-Happy-Mother-s-Day-Wooden-Block/m-p/990066#M25948</guid>
      <dc:creator>Techle</dc:creator>
      <dc:date>2026-06-25T09:14:05Z</dc:date>
    </item>
  </channel>
</rss>

