<?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: SGPLOT POLYGON Issue in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/623212#M19419</link>
    <description>&lt;P&gt;Folks -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code fixed my problem -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA AREABAR;&lt;BR /&gt;SET cpudata2;&lt;BR /&gt;RETAIN id 0 ;&lt;BR /&gt;id=id+1; y=0; x=hour-.5; output;&lt;BR /&gt;y=lpctby; x=hour-.5; output;&lt;BR /&gt;y=lpctby; x=hour+.5; output;&lt;BR /&gt;y=0; x=hour+.5; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i finally figured out that I needed to calculate the width of the hour variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Closing issue.&amp;nbsp; Thanks for all of the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MH&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 23:03:04 GMT</pubDate>
    <dc:creator>MarkHiltbruner</dc:creator>
    <dc:date>2020-02-07T23:03:04Z</dc:date>
    <item>
      <title>SGPLOT POLYGON Issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621016#M19379</link>
      <description>&lt;P&gt;Folks -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought I had correct code to create polygon (see AREABAR section of code), but the first hour does not plot.&amp;nbsp; Looking at the AREABAR data shows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;BR /&gt;X D Y&lt;BR /&gt;&lt;BR /&gt;0 1 0.0000&lt;BR /&gt;0 1 75.8477&lt;BR /&gt;0 1 75.8477&lt;BR /&gt;0 1 0.0000&lt;BR /&gt;0 2 0.0000&lt;BR /&gt;0 2 55.9871&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note the six occurences for the first x (hour). The rest of the graph looks good.&amp;nbsp; Please see the attached pdf output, sas source and DATA=WORKAREA data.&amp;nbsp; New with polygons, so bear with me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 23:43:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621016#M19379</guid>
      <dc:creator>MarkHiltbruner</dc:creator>
      <dc:date>2020-01-29T23:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT POLYGON Issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621200#M19380</link>
      <description>&lt;P&gt;I've moved your question to the Graphics Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Because you did not provide a cut-and-paste example, I do not have time to try to test my idea, but I suggest you try adding VALUESHINT to the XAXIS statement. It might solve the problem, and it won't hurt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;xaxis offsetmin=.02 label='Hour of Day' values= (0 to 23 by 1) VALUESHINT;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 16:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621200#M19380</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-01-30T16:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT POLYGON Issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621582#M19389</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/309224"&gt;@MarkHiltbruner&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Folks -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thought I had correct code to create polygon (see AREABAR section of code), but the first hour does not plot.&amp;nbsp; Looking at the AREABAR data shows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I&lt;BR /&gt;X D Y&lt;BR /&gt;&lt;BR /&gt;0 1 0.0000&lt;BR /&gt;0 1 75.8477&lt;BR /&gt;0 1 75.8477&lt;BR /&gt;0 1 0.0000&lt;BR /&gt;0 2 0.0000&lt;BR /&gt;0 2 55.9871&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note the six occurences for the first x (hour). The rest of the graph looks good.&amp;nbsp; Please see the attached pdf output, sas source and DATA=WORKAREA data.&amp;nbsp; New with polygons, so bear with me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Same comment as last time: you don't have enough vertices. All of your X values are the same so all that could be attempted would be a vertical up and down line section as Y changes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To plot Id=1 values I would expect the dat ato look something like:&lt;/P&gt;
&lt;PRE&gt;0 1 0.0000
0 1 75.8477
4 1 75.8477
4 1 0.0000&lt;/PRE&gt;
&lt;P&gt;If you have a datetime that starts at midnight consider what hour is involved. After a time of 23:59:59 when you add one second you get a time value of 00:00:00. So you are not getting a useable X increment for Hour=0.&lt;/P&gt;
&lt;P&gt;So this data step:&lt;/P&gt;
&lt;PRE&gt;DATA AREABAR;
  SET cpudata2;
  RETAIN x 0 id 0 ;
  id=id+1; y=0; output;
  y=lpctby; output;
  &lt;STRONG&gt;x=hour;&lt;/STRONG&gt; output;
  y=0; output;
run;&lt;/PRE&gt;
&lt;P&gt;needs some adjustment to handle hour 0.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Feb 2020 00:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/621582#M19389</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-01T00:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT POLYGON Issue</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/623212#M19419</link>
      <description>&lt;P&gt;Folks -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code fixed my problem -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA AREABAR;&lt;BR /&gt;SET cpudata2;&lt;BR /&gt;RETAIN id 0 ;&lt;BR /&gt;id=id+1; y=0; x=hour-.5; output;&lt;BR /&gt;y=lpctby; x=hour-.5; output;&lt;BR /&gt;y=lpctby; x=hour+.5; output;&lt;BR /&gt;y=0; x=hour+.5; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i finally figured out that I needed to calculate the width of the hour variable.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Closing issue.&amp;nbsp; Thanks for all of the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MH&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 23:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-POLYGON-Issue/m-p/623212#M19419</guid>
      <dc:creator>MarkHiltbruner</dc:creator>
      <dc:date>2020-02-07T23:03:04Z</dc:date>
    </item>
  </channel>
</rss>

