<?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 Controlling time intervals in the x axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468385#M16123</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a graph, that delineates everything by year.&lt;/P&gt;&lt;PRE&gt;proc sgplot data=HW2.earthquakes(where=(year &amp;gt;= 2000));
  	XAXIS interval = year;
	Scatter X = year Y = magnitude;
	Title 'Magnitude of Earthquakes occuring in 2000 and beyond';
run;&lt;/PRE&gt;&lt;P&gt;When I run this code, I wind up with up with a graph that&amp;nbsp;still shows ticks in&amp;nbsp;two year increments.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="year.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21090iBF6BF8C29A52A82D/image-size/large?v=v2&amp;amp;px=999" role="button" title="year.PNG" alt="year.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get it to show a tick for every year?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jun 2018 14:33:10 GMT</pubDate>
    <dc:creator>Errant</dc:creator>
    <dc:date>2018-06-07T14:33:10Z</dc:date>
    <item>
      <title>Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468385#M16123</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create a graph, that delineates everything by year.&lt;/P&gt;&lt;PRE&gt;proc sgplot data=HW2.earthquakes(where=(year &amp;gt;= 2000));
  	XAXIS interval = year;
	Scatter X = year Y = magnitude;
	Title 'Magnitude of Earthquakes occuring in 2000 and beyond';
run;&lt;/PRE&gt;&lt;P&gt;When I run this code, I wind up with up with a graph that&amp;nbsp;still shows ticks in&amp;nbsp;two year increments.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="year.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21090iBF6BF8C29A52A82D/image-size/large?v=v2&amp;amp;px=999" role="button" title="year.PNG" alt="year.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I get it to show a tick for every year?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468385#M16123</guid>
      <dc:creator>Errant</dc:creator>
      <dc:date>2018-06-07T14:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468393#M16125</link>
      <description>&lt;P&gt;Judging by the plot, YEAR is not really a datetime variable, so INTERVAL will not work for you. For this case, I think you just want to set TYPE=DISCRETE on the XAXIS statement instead of using the default linear axis for numeric data.&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>Thu, 07 Jun 2018 14:46:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468393#M16125</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-06-07T14:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468396#M16126</link>
      <description>&lt;P&gt;It worked great, thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:49:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468396#M16126</guid>
      <dc:creator>Errant</dc:creator>
      <dc:date>2018-06-07T14:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Controlling time intervals in the x axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468397#M16127</link>
      <description>&lt;P&gt;To force display of tick mark values add a VALUES option to the XAXIS statement such as VALUES=(2000 to 2011 by 1) instead of INTERVAL.&lt;/P&gt;
&lt;P&gt;It may be that just removing INTERVAL= would work but depending on the range of values and the display size each year may not receive a tick mark.&lt;/P&gt;
&lt;P&gt;The interval option is going to want a DATE, TIME or DATETIME valued variable for the x value and yours is very likely not from the display and values shown.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jun 2018 14:49:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Controlling-time-intervals-in-the-x-axis/m-p/468397#M16127</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-06-07T14:49:57Z</dc:date>
    </item>
  </channel>
</rss>

