<?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: Bug in SGPLOT when using max= in yaxis statement in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973116#M18854</link>
    <description>&lt;P&gt;"Note that the y-axis tick mark label "13" may be a bit misleading because it is &lt;EM&gt;rounded up from &lt;STRONG&gt;12.5&lt;/STRONG&gt;&lt;/EM&gt; due to the insufficient width of the format specification"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well spotted!&amp;nbsp; I didn't expect that would happen (and yes, the format should be wider).&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 13:00:55 GMT</pubDate>
    <dc:creator>BruceBrad</dc:creator>
    <dc:date>2025-08-22T13:00:55Z</dc:date>
    <item>
      <title>Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973109#M18849</link>
      <description>&lt;P&gt;The attached image shows the output from two sgplot statements. The syntax for the bottom (incorrect) image is below. The syntax for the (correct) top image is identical, except that the "max=18" text is omitted. (See, for example the point for 2010, it should be 13.1). Using the max statement seems to shift the axis down.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let cl = curvelabel CURVELABELLOC=OUTSIDE CURVELABELPOS=max curvelabelattrs=(size=12);&lt;BR /&gt;proc sgplot data=medians_rates_comb;
  label date="Year (Jan)";
  series y=ABS_P50_AHY_C8_RcZS x=date  
           /lineattrs=(thickness=4 pattern=solid)
           markers markerattrs=(size=8 symbol=circlefilled) &amp;amp;cl;
  yaxis label="%" labelpos=center minor grid minorgrid 
        labelattrs=(size=14) valueattrs=(size=12) valuesformat=f3.1 min=5 max=18;
  xaxis  grid minor minorgrid labelattrs=(size=12) valueattrs=(size=12) ;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-08-22 220655.png" style="width: 645px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109196iBA067242F7545E90/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-08-22 220655.png" alt="Screenshot 2025-08-22 220655.png" /&gt;&lt;/span&gt;  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973109#M18849</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2025-08-22T12:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973111#M18850</link>
      <description>&lt;P&gt;No image attached. Please use the "Insert Photos" icon, rather than attaching a file.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1755865510560.png" style="width: 498px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109197iC1AE4B6D57BDBC54/image-dimensions/498x24?v=v2" width="498" height="24" role="button" title="PaigeMiller_0-1755865510560.png" alt="PaigeMiller_0-1755865510560.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973111#M18850</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-08-22T12:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973113#M18851</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-08-22 220655.png" style="width: 645px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/109198iEFA120A0DD10FE1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-08-22 220655.png" alt="Screenshot 2025-08-22 220655.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973113#M18851</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2025-08-22T12:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973114#M18852</link>
      <description>&lt;P&gt;I thought it had uploaded. Anyway here it is again. Actually, on a bit more reflection, it might be the min= statement that triggers the problem. I get the same problem recurring when extra data points push the axis higher. Now I'm using a values statement, which seems to work. But it seems to me that this is a bug.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:31:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973114#M18852</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2025-08-22T12:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973115#M18853</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12505"&gt;@BruceBrad&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12505"&gt;@BruceBrad&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;(...) See, for example the point for 2010, it should be 13.1 ...&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have measured the y-coordinates of the tick marks and the point in question (in the bottom image) and obtained 13.14 for the value -- so no indication of a bug. Note that the y-axis tick mark label "13" may be a bit misleading because it is &lt;EM&gt;rounded up from &lt;STRONG&gt;12.5&lt;/STRONG&gt;&lt;/EM&gt; due to the insufficient width of the format specification&lt;/P&gt;
&lt;PRE&gt;valuesformat=&lt;FONT color="#800080"&gt;&lt;STRONG&gt;f3.1&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 12:57:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973115#M18853</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2025-08-22T12:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Bug in SGPLOT when using max= in yaxis statement</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973116#M18854</link>
      <description>&lt;P&gt;"Note that the y-axis tick mark label "13" may be a bit misleading because it is &lt;EM&gt;rounded up from &lt;STRONG&gt;12.5&lt;/STRONG&gt;&lt;/EM&gt; due to the insufficient width of the format specification"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well spotted!&amp;nbsp; I didn't expect that would happen (and yes, the format should be wider).&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 13:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Bug-in-SGPLOT-when-using-max-in-yaxis-statement/m-p/973116#M18854</guid>
      <dc:creator>BruceBrad</dc:creator>
      <dc:date>2025-08-22T13:00:55Z</dc:date>
    </item>
  </channel>
</rss>

