<?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: Varying x-axis tick marks in sgplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965828#M25491</link>
    <description>&lt;P&gt;Thanks for this suggestion. I was able to make this work within a test plot. Not sure why it isn't working in my macro though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definitely not a pressing issue but if you have any other ideas please let me know. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Xaxis label="Monthly time series data" Values=("01MAR19"d to "30SEP23"d by quarter) minor minorinterval=month labelattrs=(family=arial size=11) valueattrs=(family=arial size=10) valuesformat=monyy.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 05 May 2025 23:35:50 GMT</pubDate>
    <dc:creator>sasgorilla</dc:creator>
    <dc:date>2025-05-05T23:35:50Z</dc:date>
    <item>
      <title>Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965325#M25459</link>
      <description>&lt;P&gt;Hi. Is there a way to add a quarterly tickmark without label in between my labeled tick marks?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasgorilla_0-1745879465933.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106596iAE4A9701A9490131/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasgorilla_0-1745879465933.png" alt="sasgorilla_0-1745879465933.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In other words, I would want to see a tick mark in March and October for each year without a label.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current code used below. I've tricked tinkering with adding minor and minorinterval options but it hasn't produced the change I want.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Xaxis label="Monthly time series data" values=("01JAN19"d to "30SEP23"d by quarter) labelattrs=(family=arial size=11 weight=bold) Valueattrs=(family=arial size=10) valuesformat=monyy.;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 22:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965325#M25459</guid>
      <dc:creator>sasgorilla</dc:creator>
      <dc:date>2025-04-28T22:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965326#M25460</link>
      <description>&lt;P&gt;I should also say I'm not exactly sure why it's displaying the monyy and tick mark every 6 months even though I have "by quarter" in the values statement. That is fine, but if someone could help explain why I'd appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Apr 2025 22:57:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965326#M25460</guid>
      <dc:creator>sasgorilla</dc:creator>
      <dc:date>2025-04-28T22:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965330#M25461</link>
      <description>&lt;P&gt;I think that is due to you have too many values/month to plot in X axis.&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.stocks;
where year(date) in ( 2001 2002 2003 2004);
series x=date y=close/group=stock;
Xaxis label="Monthly time series data" values=("01JAN2001"d to "01Jan2004"d by quarter)
 &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;type=discrete fitpolicy=rotate&lt;/STRONG&gt; &lt;/FONT&gt;;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1745890271718.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106597iDEEC4C9941672275/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1745890271718.png" alt="Ksharp_0-1745890271718.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 01:31:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965330#M25461</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-29T01:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965332#M25462</link>
      <description>&lt;P&gt;On your XAXIS statement, set these two options:&lt;/P&gt;
&lt;P&gt;MINOR MINORINTERVAL=quarter&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2025 01:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965332#M25462</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2025-04-29T01:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965828#M25491</link>
      <description>&lt;P&gt;Thanks for this suggestion. I was able to make this work within a test plot. Not sure why it isn't working in my macro though.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Definitely not a pressing issue but if you have any other ideas please let me know. Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Xaxis label="Monthly time series data" Values=("01MAR19"d to "30SEP23"d by quarter) minor minorinterval=month labelattrs=(family=arial size=11) valueattrs=(family=arial size=10) valuesformat=monyy.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 May 2025 23:35:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965828#M25491</guid>
      <dc:creator>sasgorilla</dc:creator>
      <dc:date>2025-05-05T23:35:50Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965829#M25492</link>
      <description>&lt;P&gt;This does produce quarterly intervals, but it applies a label to every tick mark (quarterly). Is there a way to get a tick mark without a label at the quarterly intervals?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In other words:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MAR19&lt;/P&gt;
&lt;P&gt;tick (for JUN19, no label)&lt;/P&gt;
&lt;P&gt;SEP19&lt;/P&gt;
&lt;P&gt;tick (for DEC 19, no label)&lt;/P&gt;
&lt;P&gt;MAR20&lt;/P&gt;
&lt;P&gt;...etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 May 2025 23:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965829#M25492</guid>
      <dc:creator>sasgorilla</dc:creator>
      <dc:date>2025-05-05T23:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Varying x-axis tick marks in sgplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965830#M25493</link>
      <description>&lt;P&gt;An alternative way is using valuesdisplay= option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sashelp.stocks;
where year(date) in ( 2001 2002 );
series x=date y=close/group=stock;
Xaxis label="Monthly time series data" values=("01JAN2001"d to "01jan2002"d by &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;month&lt;/FONT&gt;&lt;/STRONG&gt;)
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;valuesdisplay=('Jan01' ' ' ' ' 'Apr01' ' ' ' ' 'Jul01' ' ' ' ' 'Oct01' ' ' ' ' 'Jan02')
type=linear&lt;/STRONG&gt;&lt;/FONT&gt;
;
run;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1746496745055.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106739i7F9002F485D626CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1746496745055.png" alt="Ksharp_0-1746496745055.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2025 01:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Varying-x-axis-tick-marks-in-sgplot/m-p/965830#M25493</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-05-06T01:59:25Z</dc:date>
    </item>
  </channel>
</rss>

