<?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: Limit # of tick makrs using sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499233#M17022</link>
    <description>&lt;P&gt;I see a variable named &lt;EM&gt;day&lt;/EM&gt;. If x is a time axis, then you can use the INTERVAL=&amp;nbsp; option&amp;nbsp;&lt;SPAN&gt;in the XAXIS statement.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would use INTERVAL= auto, to let SAS determine the optimal&amp;nbsp;spacing of tick marks. [1, 2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mainlib.data;

    vbar day / response=col1 group=type nostatlabel;

    xaxis interval=auto;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;References&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#xaxis-stmt.htm" target="_self"&gt;PROC SGPLOT: INTERVAL= option of XAXIS statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/intervals-on-x-axis/td-p/106739" target="_self"&gt;SAS Community Post: intervals on x-axis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Sep 2018 19:50:22 GMT</pubDate>
    <dc:creator>pink_poodle</dc:creator>
    <dc:date>2018-09-26T19:50:22Z</dc:date>
    <item>
      <title>Limit # of tick makrs using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499217#M17021</link>
      <description>&lt;P&gt;I'm still new to SAS and am learning.&amp;nbsp; I tried searching the forum, but perhaps was not using the right key terms.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to limit the number of ticks for an sgplot function?&amp;nbsp; Right now, I have around 100 plus rows, but since I am using vbar, that is way too many ticks along the x axis.&amp;nbsp; I tried changing the values using the values option, but that only reduced the data shown.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still want to show all the bars, but not have a tick underneath each of them.&amp;nbsp; Only have a tick for every 10 values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=mainlib.data;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbar day / response=col1 group=type nostatlabel;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 18:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499217#M17021</guid>
      <dc:creator>yondy</dc:creator>
      <dc:date>2018-09-26T18:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Limit # of tick makrs using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499233#M17022</link>
      <description>&lt;P&gt;I see a variable named &lt;EM&gt;day&lt;/EM&gt;. If x is a time axis, then you can use the INTERVAL=&amp;nbsp; option&amp;nbsp;&lt;SPAN&gt;in the XAXIS statement.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would use INTERVAL= auto, to let SAS determine the optimal&amp;nbsp;spacing of tick marks. [1, 2]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mainlib.data;

    vbar day / response=col1 group=type nostatlabel;

    xaxis interval=auto;

run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;References&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[1]&amp;nbsp;&lt;A href="https://support.sas.com/documentation/cdl/en/grstatproc/62603/HTML/default/viewer.htm#xaxis-stmt.htm" target="_self"&gt;PROC SGPLOT: INTERVAL= option of XAXIS statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Procedures/intervals-on-x-axis/td-p/106739" target="_self"&gt;SAS Community Post: intervals on x-axis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 19:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499233#M17022</guid>
      <dc:creator>pink_poodle</dc:creator>
      <dc:date>2018-09-26T19:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limit # of tick makrs using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499236#M17023</link>
      <description>&lt;P&gt;For a discrete axis (like for VBAR), try using a FITPOLICY on the XAXIS statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mainlib.data;
    xaxis fitpolicy=thin;
    vbar day / response=col1 group=type nostatlabel;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;There are a number of policies from which to choose. See the documentation for further details about each one.&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, 26 Sep 2018 19:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499236#M17023</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-09-26T19:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Limit # of tick makrs using sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499239#M17024</link>
      <description>&lt;P&gt;That did the trick!&amp;nbsp; Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 19:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Limit-of-tick-makrs-using-sgplot/m-p/499239#M17024</guid>
      <dc:creator>yondy</dc:creator>
      <dc:date>2018-09-26T19:56:38Z</dc:date>
    </item>
  </channel>
</rss>

