<?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: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979957#M25754</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arrie_0-1764788277553.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111765i79E3378409C964DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Arrie_0-1764788277553.png" alt="Arrie_0-1764788277553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 18:58:11 GMT</pubDate>
    <dc:creator>Arrie</dc:creator>
    <dc:date>2025-12-03T18:58:11Z</dc:date>
    <item>
      <title>LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979947#M25749</link>
      <description>&lt;P&gt;Hi, I am struggling a bit with the axis labels in my SGPLOT...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;proc sgplot data = my_data; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Vbarbasic X / response=VAR1 name='Series1' fillattrs=(color=orange) legendlabel='LABEL1'; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Vbarbasic X / response=VAR2 name='Series2' fillattrs=(color=Purple) legendlabel='LABEL2'; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Series x=X y=VAR3 / LINEATTRS=(pattern=solid color=Blue) name='Series1' legendlabel='LABEL3' ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;STEP x=X y=VAR4 / LINEATTRS=(pattern=solid color=Red ) name='Series6' legendlabel='LABEL4' ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;YAXIS label="Production"; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;XAXIS label ="Moment" values=(0 to 96) VALUESROTATE=diagonal2 valuesformat=MY_FMT.;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;keylegend "Series1" "Series2" "Series3" "Series4" "Series5" "Series6"/ title="" location=outside position=right across=1; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The format of the labels looks like:&amp;nbsp;05-31 00:00,&amp;nbsp;05-31 01:00, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Labeling all the x-values produces one black bar of unreadable text so I want to label just a subset. Changing the values statement eg to&amp;nbsp;&lt;FONT size="2"&gt;values=(0 to 96 by 4) reduces the number of observations plotted and that is not what I want. So I want all observations plotted in the graph and only a specific subset labeled on the axis&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;I'm sure I have done this before, but can't find the to do it anymore.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Can somebody help me?&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Regards, Arie&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:20:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979947#M25749</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-03T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979948#M25750</link>
      <description>&lt;P&gt;Is variable X numeric or character, according to PROC CONTENTS? The results you are getting make me think it is character. If it is character, then you will need to convert it to an actual numeric date/time value, assuming that you want it to be a date/time value (is that what you want? you tell us what you don't want, but you haven't really been specific about what you do want).&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:32:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979948#M25750</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-12-03T16:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979950#M25751</link>
      <description>&lt;P&gt;At first it were timestamps but I transformed these to numbers, here from 1 to 96&lt;BR /&gt;The labels will display 1 as "05-31 00:00", 2 as "05-31 01:00", etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 16:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979950#M25751</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-03T16:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979954#M25752</link>
      <description>&lt;P&gt;Is this variable that goes from 1 to 96 numeric or character, according to PROC CONTENTS?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it is numeric, what is the format according to PROC CONTENTS?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:07:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979954#M25752</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-12-03T18:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979955#M25753</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Variables in Creation Order&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;# Variable Type Len Format Label&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;3&amp;nbsp; &amp;nbsp;X&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Num&amp;nbsp; 8&amp;nbsp; ZO_DAN_RIJ.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;and that format says:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;1="05-31 00:00"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;2="05-31 01:0"&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;etc&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979955#M25753</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-03T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979957#M25754</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Arrie_0-1764788277553.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111765i79E3378409C964DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Arrie_0-1764788277553.png" alt="Arrie_0-1764788277553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 18:58:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979957#M25754</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-03T18:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979966#M25755</link>
      <description>&lt;P&gt;You can add the FITPOLICY=ROTATETHIN option to the XAXIS statement to have the procedure rotate the values and thin (remove) some of the tick values.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;P&gt;XAXIS label ="Moment" values=(0 to 96) VALUESROTATE=diagonal2 valuesformat=MY_FMT. fitpolicy=rotatethin;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; hope that helps.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Marcia&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:48:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979966#M25755</guid>
      <dc:creator>MarciaS</dc:creator>
      <dc:date>2025-12-03T20:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979993#M25756</link>
      <description>&lt;P&gt;Did you try valuesdisplay= option?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2019/04/22/mortgage-rates-overlaying-multiple-years-in-the-same-graph/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/graphicallyspeaking/2019/04/22/mortgage-rates-overlaying-multiple-years-in-the-same-graph/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;PRE&gt;xaxis values=('01jan1960'd to '01jan1961'd by month)
&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;valuesdisplay&lt;/STRONG&gt;&lt;/FONT&gt;=('Jan'  &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;' '&lt;/STRONG&gt;&lt;/FONT&gt;   'Mar'&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;   ' '&lt;/STRONG&gt;&lt;/FONT&gt;   'May'   &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;' '&lt;/STRONG&gt;&lt;/FONT&gt;   'Jul' 'Aug' 'Sep' 'Oct' 'Nov' 'Dec' ' ');&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Dec 2025 07:49:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979993#M25756</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-12-04T07:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979997#M25757</link>
      <description>&lt;P&gt;yes...&lt;/P&gt;</description>
      <pubDate>Thu, 04 Dec 2025 09:05:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979997#M25757</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-04T09:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: LABELING THE X-AXIS FOR A SUBSET OF THE X-VALUES  / SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979998#M25758</link>
      <description>Marcia, this works! Thnka</description>
      <pubDate>Thu, 04 Dec 2025 09:06:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/LABELING-THE-X-AXIS-FOR-A-SUBSET-OF-THE-X-VALUES-SGPLOT/m-p/979998#M25758</guid>
      <dc:creator>Arrie</dc:creator>
      <dc:date>2025-12-04T09:06:30Z</dc:date>
    </item>
  </channel>
</rss>

