<?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 Y-axis Values not working in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937770#M24867</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yaxis values=(50 to 100 by 10) label= 'Y-axis';
xaxis type=linear values=(0 to 25 by 5) offsetmin=0.1 offsetmax=0.1 label= "X-axis";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your use of two YAXIS/XAXIS statements is the problem combine them.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2024 15:07:34 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2024-07-31T15:07:34Z</dc:date>
    <item>
      <title>SGPLOT Y-axis Values not working</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937766#M24866</link>
      <description>&lt;P&gt;I have run SGPLOT with “Series” and “Scatter” but can’t seem to get the y-axis values to be explicit value (i.e., 50 to 100 by 10).&amp;nbsp; Tried multiple different options including “yaxis type=linear values=(&lt;STRONG&gt;50&lt;/STRONG&gt; to &lt;STRONG&gt;100&lt;/STRONG&gt; by &lt;STRONG&gt;10&lt;/STRONG&gt;);” and &amp;nbsp;“yaxis&amp;nbsp; min=&lt;STRONG&gt;50&lt;/STRONG&gt; max=&lt;STRONG&gt;100&lt;/STRONG&gt;;” &amp;nbsp;and neither worked (see SAS code and log below)&lt;/P&gt;&lt;P&gt;I have also provided the output.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I explicitly set the y-axis values in this scenario?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data forplot;&lt;BR /&gt;trt_num = 10;&lt;BR /&gt;xval=1;&lt;BR /&gt;aval_mean = 65;&lt;BR /&gt;aval_lclm = 61;&lt;BR /&gt;aval_uclm = 69;&lt;BR /&gt;output;&lt;BR /&gt;xval=10;&lt;BR /&gt;aval_mean = 65;&lt;BR /&gt;aval_lclm = 61;&lt;BR /&gt;aval_uclm = 69;&lt;BR /&gt;output;&lt;BR /&gt;xval=15;&lt;BR /&gt;aval_mean = 65;&lt;BR /&gt;aval_lclm = 61;&lt;BR /&gt;aval_uclm = 69;&lt;BR /&gt;output;&lt;BR /&gt;xval=22;&lt;BR /&gt;aval_mean = 65;&lt;BR /&gt;aval_lclm = 61;&lt;BR /&gt;aval_uclm = 69;&lt;BR /&gt;output;&lt;BR /&gt;&lt;BR /&gt;trt_num = 20;&lt;BR /&gt;xval=1;&lt;BR /&gt;aval_mean = 75;&lt;BR /&gt;aval_lclm = 71;&lt;BR /&gt;aval_uclm = 79;&lt;BR /&gt;output;&lt;BR /&gt;xval=10;&lt;BR /&gt;aval_mean = 75;&lt;BR /&gt;aval_lclm = 71;&lt;BR /&gt;aval_uclm = 79;&lt;BR /&gt;output;&lt;BR /&gt;xval=15;&lt;BR /&gt;aval_mean = 75;&lt;BR /&gt;aval_lclm = 71;&lt;BR /&gt;aval_uclm = 79;&lt;BR /&gt;output;&lt;BR /&gt;xval=22;&lt;BR /&gt;aval_mean = 75;&lt;BR /&gt;aval_lclm = 71;&lt;BR /&gt;aval_uclm = 79;&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;title "Attempt #1";&lt;BR /&gt;proc sgplot data=forplot;&lt;/P&gt;&lt;P&gt;scatter x=xval y=aval_mean /&lt;BR /&gt;yerrorlower=aval_lclm yerrorupper=aval_uclm group=trt_num&lt;BR /&gt;markerattrs=(symbol=SquareFilled size=15px);&lt;/P&gt;&lt;P&gt;series x=xval y=aval_mean / group=trt_num legendlabel="Means";&lt;/P&gt;&lt;P&gt;styleattrs datacontrastcolors = (red blue green purple) ;&lt;/P&gt;&lt;P&gt;yaxis values=(50 to 100 by 10);&lt;BR /&gt;yaxis label= 'Y-axis';&lt;/P&gt;&lt;P&gt;xaxis type=linear values=(0 to 25 by 5) offsetmin=0.1 offsetmax=0.1;&lt;BR /&gt;xaxis label= "X-axis";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;title "Attempt #2";&lt;BR /&gt;proc sgplot data=forplot;&lt;/P&gt;&lt;P&gt;scatter x=xval y=aval_mean /&lt;BR /&gt;yerrorlower=aval_lclm yerrorupper=aval_uclm group=trt_num&lt;BR /&gt;markerattrs=(symbol=SquareFilled size=15px);&lt;/P&gt;&lt;P&gt;series x=xval y=aval_mean / group=trt_num legendlabel="Means";&lt;/P&gt;&lt;P&gt;styleattrs datacontrastcolors = (red blue green purple) ;&lt;/P&gt;&lt;P&gt;yaxis min=50 max=100;&lt;/P&gt;&lt;P&gt;yaxis label= 'Y-axis';&lt;/P&gt;&lt;P&gt;xaxis type=linear values=(0 to 25 by 5) offsetmin=0.1 offsetmax=0.1;&lt;BR /&gt;xaxis label= "X-axis";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 14:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937766#M24866</guid>
      <dc:creator>jimmac01</dc:creator>
      <dc:date>2024-07-31T14:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Y-axis Values not working</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937770#M24867</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;yaxis values=(50 to 100 by 10) label= 'Y-axis';
xaxis type=linear values=(0 to 25 by 5) offsetmin=0.1 offsetmax=0.1 label= "X-axis";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Your use of two YAXIS/XAXIS statements is the problem combine them.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937770#M24867</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-07-31T15:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Y-axis Values not working</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937775#M24868</link>
      <description>Wow, thanks I am embarrassed for not catching this myself.</description>
      <pubDate>Wed, 31 Jul 2024 15:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937775#M24868</guid>
      <dc:creator>jimmac01</dc:creator>
      <dc:date>2024-07-31T15:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT Y-axis Values not working</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937777#M24869</link>
      <description>&lt;P&gt;I would have expected it to work.&amp;nbsp; Many other statements work that way but i'm thinking of proc report DEFINE, or CLASS statement in PROC SUMMARY.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:34:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-Y-axis-Values-not-working/m-p/937777#M24869</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2024-07-31T15:34:32Z</dc:date>
    </item>
  </channel>
</rss>

