<?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: Truncated Xaxistable value in PROC SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798251#M22617</link>
    <description>&lt;P&gt;The area to the left of the Y axis is protected to prevent possible collisions. That's why you got the clipping when you overrode the OFFESETMIN. This behavior can happen with plot primitives as well (e.g. bar, markers, etc.). The only workaround to get exactly what you want is to turn off the axis table and use annotations, which are not impacted by protected regions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See page 4 and page 6 my annotation paper (&lt;A href="https://support.sas.com/resources/papers/proceedings11/277-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/277-2011.pdf&lt;/A&gt;) to see the details of the steps I list below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps:&lt;/P&gt;
&lt;P&gt;1) Create an annotation data set as described in the paper. Page 6 is probably the best example for you (as you will probably have input data), but you will flip the "space" specifications, since you are creating a table along the bottom. The example on page 4 might make the space specifications for bottom tables clearer.&lt;/P&gt;
&lt;P&gt;2) Remove your axis table(s)&lt;/P&gt;
&lt;P&gt;3) On the SGPLOT statement, set PAD=(BOTTOM=&amp;lt;some amount&amp;gt;) to create the needed space along the bottom of the graph&lt;/P&gt;
&lt;P&gt;4) Specify your annotation data set on the SGPLOT statement using the SGANNO option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Wed, 23 Feb 2022 21:01:12 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2022-02-23T21:01:12Z</dc:date>
    <item>
      <title>Truncated Xaxistable value in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798235#M22616</link>
      <description>&lt;P&gt;Hi, I am trying to add an xaxistable under the x axis in proc sgplot. It worked well at first:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasforum3.png" style="width: 355px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68783iD4712F723BA1C3AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasforum3.png" alt="sasforum3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I wanted to move the ticks on the x axis to the left to make point 0 at the left bottom corner (the origin) using the 'offsetmin = 0' option in xaxis statement. After doing this, the value (4179)&lt;SPAN&gt;&amp;nbsp;for x=0 was truncated to 79:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasforum1.png" style="width: 358px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68784i30C0301BC56BDFB4/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasforum1.png" alt="sasforum1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The value remained truncated even after I removed the label of the table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasforum2.png" style="width: 310px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68785iE9D7330A9BFA59A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="sasforum2.png" alt="sasforum2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there any way to let the value for 0 display normally when I use offsetmin = 0 for x axis? Doesn't have to use xaxistable statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 20:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798235#M22616</guid>
      <dc:creator>Chaupak</dc:creator>
      <dc:date>2022-02-23T20:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Xaxistable value in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798251#M22617</link>
      <description>&lt;P&gt;The area to the left of the Y axis is protected to prevent possible collisions. That's why you got the clipping when you overrode the OFFESETMIN. This behavior can happen with plot primitives as well (e.g. bar, markers, etc.). The only workaround to get exactly what you want is to turn off the axis table and use annotations, which are not impacted by protected regions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See page 4 and page 6 my annotation paper (&lt;A href="https://support.sas.com/resources/papers/proceedings11/277-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/277-2011.pdf&lt;/A&gt;) to see the details of the steps I list below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steps:&lt;/P&gt;
&lt;P&gt;1) Create an annotation data set as described in the paper. Page 6 is probably the best example for you (as you will probably have input data), but you will flip the "space" specifications, since you are creating a table along the bottom. The example on page 4 might make the space specifications for bottom tables clearer.&lt;/P&gt;
&lt;P&gt;2) Remove your axis table(s)&lt;/P&gt;
&lt;P&gt;3) On the SGPLOT statement, set PAD=(BOTTOM=&amp;lt;some amount&amp;gt;) to create the needed space along the bottom of the graph&lt;/P&gt;
&lt;P&gt;4) Specify your annotation data set on the SGPLOT statement using the SGANNO option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 21:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798251#M22617</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2022-02-23T21:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Xaxistable value in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798257#M22618</link>
      <description>&lt;P&gt;Thanks so much Dan, that's a very detail answer! I fixed this problem using the annotation now.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 21:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798257#M22618</guid>
      <dc:creator>Chaupak</dc:creator>
      <dc:date>2022-02-23T21:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Xaxistable value in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798259#M22619</link>
      <description>&lt;P&gt;Dan has already provided a good solution.&amp;nbsp; The following is just an FYI...&lt;/P&gt;
&lt;P&gt;The underlying AXISTABLE statement in GTL provides an option to justify the values in the table.&amp;nbsp; See:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatgraph/p0v5nj3waz75w4n1s2y70echq6im.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could use the SGPLOT TMPLOUT option to get the generated GTL code, and then make the above change to the AXISTABLE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: This may allow you to draw the values justified left.&amp;nbsp; However, this could have other side effects on the other side of the axis.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Feb 2022 21:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798259#M22619</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2022-02-23T21:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Truncated Xaxistable value in PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798270#M22620</link>
      <description>Thanks!</description>
      <pubDate>Wed, 23 Feb 2022 22:45:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Truncated-Xaxistable-value-in-PROC-SGPLOT/m-p/798270#M22620</guid>
      <dc:creator>Chaupak</dc:creator>
      <dc:date>2022-02-23T22:45:43Z</dc:date>
    </item>
  </channel>
</rss>

