<?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: Annotation data set for sgpolygon in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669981#M79189</link>
    <description>&lt;P&gt;Thank you for your reply. I plot a graph of observations on the y-axis and time on the x-axis in sgplot with the series statement. I then want to fill the area below the graph with a pattern. This could of course be done with a band statement, but I want to achieve a kind of zig-zag pattern; lines of the pattern go up from Time 1 to Time 2, down from Time 2 to Time3, up from Time 3 to Time. I didnt's see an easy way with the band statement, so I thouth to give it a try with annotating. I am programming the annotate data set from scratch (so not using the macros). Instead of a pattern, I now use alternating colors. This is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function = "polygon";&lt;BR /&gt;x1 = Time1;&lt;BR /&gt;y1 = 0;&lt;BR /&gt;if mod(_N_, 2) = 0 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fillcolor = "cx3B5DAD";&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fillcolor = "cx393547";&lt;BR /&gt;end;&lt;BR /&gt;filltransparency = 0.5;&lt;BR /&gt;display = "fill";&lt;BR /&gt;layer = "back";&lt;BR /&gt;x1space = "datavalue";&lt;BR /&gt;y1space = "datavalue";&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time2;&lt;BR /&gt;y1 = 0;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time2;&lt;BR /&gt;y1 = Obs2;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;if _N_ &amp;gt; 1 then do;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time1;&lt;BR /&gt;y1 = Obs1;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 20:25:59 GMT</pubDate>
    <dc:creator>WJJK</dc:creator>
    <dc:date>2020-07-16T20:25:59Z</dc:date>
    <item>
      <title>Annotation data set for sgpolygon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669661#M79178</link>
      <description>&lt;P&gt;I know how to make a polygon in an annotation data set (with sgpolygon and sgpolycont). I know how to set the line color, the line pattern, the fill color, but is there a way to fill the polygon with a pattern?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 19:12:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669661#M79178</guid>
      <dc:creator>WJJK</dc:creator>
      <dc:date>2020-07-15T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation data set for sgpolygon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669871#M79180</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy&lt;/a&gt;&amp;nbsp; might give you an answer .&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 12:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669871#M79180</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-07-16T12:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation data set for sgpolygon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669931#M79188</link>
      <description>&lt;P&gt;Can you show some code ? &lt;BR /&gt;Are you creating raw annotate data (DIY) or using %SG*** macros ?&lt;/P&gt;
&lt;P&gt;At present there is no built-in way to render a polygonally clipped image or have a polygon FILLSTYLEELEMENT other than COLOR. You can suggest new feature s at the&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_self"&gt;SASWare Ballot&lt;/A&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;annotate with an image that is polygon clipped, tiled, stretched or fit to target area&lt;/LI&gt;
&lt;LI&gt;annotate with fill style elements such as pattern and hatch as was possible with DSGI&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 16 Jul 2020 17:20:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669931#M79188</guid>
      <dc:creator>RichardDeVen</dc:creator>
      <dc:date>2020-07-16T17:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Annotation data set for sgpolygon</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669981#M79189</link>
      <description>&lt;P&gt;Thank you for your reply. I plot a graph of observations on the y-axis and time on the x-axis in sgplot with the series statement. I then want to fill the area below the graph with a pattern. This could of course be done with a band statement, but I want to achieve a kind of zig-zag pattern; lines of the pattern go up from Time 1 to Time 2, down from Time 2 to Time3, up from Time 3 to Time. I didnt's see an easy way with the band statement, so I thouth to give it a try with annotating. I am programming the annotate data set from scratch (so not using the macros). Instead of a pattern, I now use alternating colors. This is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;function = "polygon";&lt;BR /&gt;x1 = Time1;&lt;BR /&gt;y1 = 0;&lt;BR /&gt;if mod(_N_, 2) = 0 then do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fillcolor = "cx3B5DAD";&lt;BR /&gt;end;&lt;BR /&gt;else do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; fillcolor = "cx393547";&lt;BR /&gt;end;&lt;BR /&gt;filltransparency = 0.5;&lt;BR /&gt;display = "fill";&lt;BR /&gt;layer = "back";&lt;BR /&gt;x1space = "datavalue";&lt;BR /&gt;y1space = "datavalue";&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time2;&lt;BR /&gt;y1 = 0;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time2;&lt;BR /&gt;y1 = Obs2;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;if _N_ &amp;gt; 1 then do;&lt;BR /&gt;function = "polycont";&lt;BR /&gt;x1 = Time1;&lt;BR /&gt;y1 = Obs1;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 20:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Annotation-data-set-for-sgpolygon/m-p/669981#M79189</guid>
      <dc:creator>WJJK</dc:creator>
      <dc:date>2020-07-16T20:25:59Z</dc:date>
    </item>
  </channel>
</rss>

