<?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 Log scale yaxis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88687#M3267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new SAS user and want to present the data in log scale for y (see data and code below).&amp;nbsp; But it does not work. Did I miss something? how to show minor tick marks?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Muyi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input x y;&lt;BR /&gt;datalines;&lt;BR /&gt;0 31&lt;BR /&gt;2 69.4&lt;BR /&gt;4 78.3&lt;BR /&gt;6 82.4&lt;BR /&gt;8 51.1&lt;BR /&gt;10 34.1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;xaxis label='x' values=(0 to 10 by 2) minor;&lt;BR /&gt;yaxis label='y' type=log logbase=10 ;&amp;nbsp; &lt;BR /&gt;series x=x y=y;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Mar 2013 03:18:36 GMT</pubDate>
    <dc:creator>muyi</dc:creator>
    <dc:date>2013-03-26T03:18:36Z</dc:date>
    <item>
      <title>Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88687#M3267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am a new SAS user and want to present the data in log scale for y (see data and code below).&amp;nbsp; But it does not work. Did I miss something? how to show minor tick marks?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Muyi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input x y;&lt;BR /&gt;datalines;&lt;BR /&gt;0 31&lt;BR /&gt;2 69.4&lt;BR /&gt;4 78.3&lt;BR /&gt;6 82.4&lt;BR /&gt;8 51.1&lt;BR /&gt;10 34.1&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;xaxis label='x' values=(0 to 10 by 2) minor;&lt;BR /&gt;yaxis label='y' type=log logbase=10 ;&amp;nbsp; &lt;BR /&gt;series x=x y=y;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 03:18:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88687#M3267</guid>
      <dc:creator>muyi</dc:creator>
      <dc:date>2013-03-26T03:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88688#M3268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its working in my SAS 9.3 install.&amp;nbsp; Here is the graph.&amp;nbsp; Note the spacing of the values on the Y axis.&amp;nbsp; Default LOGSTYLE is LINEAR.&amp;nbsp; You can change that to LOGEXPAND or LOGEXPONENT.&amp;nbsp; Log will work as long as all the values are &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="3287" alt="SGPlot.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3287_SGPlot.png" /&gt;&lt;/P&gt;&lt;P&gt;Minor only works for LOGEXPAND and LOGEXPONENT, and you need more data range.&amp;nbsp; Here I scaled Y by 10:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="SGPlot.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/3289_SGPlot.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 03:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88688#M3268</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-03-26T03:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88689#M3269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Sanjay! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I have a SAS 9.2, it works when including logstyle=logexpan, but how to show the y-axis scale range (e.g. from 0.1 to 100) and how to show the minor tick in the x-axis?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;muyi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:38:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88689#M3269</guid>
      <dc:creator>muyi</dc:creator>
      <dc:date>2013-03-26T13:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88690#M3270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, it works now in my SAS 9.2 but the minor tick does not show in the x-axis, any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;BR /&gt;input x y;&lt;BR /&gt;datalines;&lt;BR /&gt;0 31&lt;BR /&gt;20 694&lt;BR /&gt;40 783&lt;BR /&gt;60 824&lt;BR /&gt;80 511&lt;BR /&gt;100 341&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc sgplot data=a;&lt;BR /&gt;xaxis label='x' values=(0 to 100 by 20) minor;&lt;BR /&gt;yaxis label='y' values=(1 to 1000) type=log logbase=10 logstyle=logexpand minor;&lt;BR /&gt;series x=x y=y;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 13:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88690#M3270</guid>
      <dc:creator>muyi</dc:creator>
      <dc:date>2013-03-26T13:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88691#M3271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Minor only works with Log (LogExpand and LogExponent) and Time axis.&amp;nbsp; Minor is not supported for linear axis in 9.2 and 9.3.&amp;nbsp; It will be in 9.4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:28:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88691#M3271</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-03-26T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88692#M3272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Documentation says, at least for my 9.2.3 install, that when the VALUES option is used then MINOR is ignored. You might try the MIN and MAX to control range of values displayed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Mar 2013 14:29:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88692#M3272</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-03-26T14:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Log scale yaxis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88693#M3273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for the hlep.&amp;nbsp; I love this community.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 21:49:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Log-scale-yaxis/m-p/88693#M3273</guid>
      <dc:creator>muyi</dc:creator>
      <dc:date>2013-04-02T21:49:48Z</dc:date>
    </item>
  </channel>
</rss>

