<?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: How Can I Delete Un-Needed Blank on Axis X in PROC GPLOT? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476950#M16475</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204979"&gt;@KentaMURANAKA&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your X variable is continuous* rather than nominal, it might be acceptable to display intermediate tick marks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case you could change the ORDER= option of AXIS99 to, say,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;order=-10 to 400 by 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and hide the repetitive part of the VALUE= specification in a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    value=(angle=0 rotate=0 height=2cells font="Times New Roman"
           %ticks
           );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Macro definition (depending on the ORDER= specification, of course):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ticks;
  %local t;
  %do t=1 %to 42;
    %if %sysfunc(mod(&amp;amp;t,10))=2 %then
      tick=&amp;amp;t height=2cells "Day" justify=center height=2cells "%eval(-20+&amp;amp;t*10)";
    %else
      tick=&amp;amp;t height=2cells " " justify=center height=2cells " ";
  %end;
%mend ticks;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other suggestions (some of which allow the omission of the intermediate tick marks) can be found in &lt;A href="http://support.sas.com/resources/papers/proceedings09/192-2009.pdf" target="_blank"&gt;this paper&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*(EDIT: in the sense that&amp;nbsp;its values can slightly depart from the few tick mark values you want to display)&lt;/P&gt;</description>
    <pubDate>Tue, 10 Jul 2018 21:56:55 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2018-07-10T21:56:55Z</dc:date>
    <item>
      <title>How Can I Delete Un-Needed Blank on Axis X in PROC GPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476738#M16466</link>
      <description>&lt;P&gt;Hi, there:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have trouble to adjust axis X's attribute.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    input id x y @@;
    datalines;
    1 -1 20 1 99 15 1 200 17 1 301 20 1 400 25
    ;
run;
symbol1 color=black value=circle repeat=1 interpol=join height=2;
axis1 minor=none label=(angle=90 rotate=0 height=2cells "Y")
    order=0 to 30 by 10;
axis99 minor=none label=(angle=0 rotate=0 height=2cells "X")
    order=-100 to 400 by 100
    value=(angle=0 rotate=0 height=2cells font="Times New Roman"
           tick=1 height=2cells " " justify=center height=2cells " "
           tick=2 height=2cells "Day" justify=center height=2cells "0"
           tick=3 height=2cells "Day" justify=center height=2cells "100"
           tick=4 height=2cells "Day" justify=center height=2cells "200"
           tick=5 height=2cells "Day" justify=center height=2cells "300"
           tick=6 height=2cells "Day" justify=center height=2cells "400"
           );
proc gplot data=test;
    plot y*x=id / haxis=axis99 vaxis=axis1;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20180710_01.JPG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21686i1E3D9904DD05E080/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20180710_01.JPG" alt="20180710_01.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;On axis X, I want these ticks (Day0, Day100, Day200, Dya300, Day400), but I don't need such as blank on Day0's left (I want smaller one).&lt;/P&gt;&lt;P&gt;In my dataset, there is X=-1 (lesser than Day0), so in this case, using OFFSETMIN= in PROC SGPLOT acts well, I know.&lt;/P&gt;&lt;P&gt;But I don't know how I can in PROC GPLOT. Please help me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 11:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476738#M16466</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2018-07-10T11:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Delete Un-Needed Blank on Axis X in PROC GPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476950#M16475</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/204979"&gt;@KentaMURANAKA&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your X variable is continuous* rather than nominal, it might be acceptable to display intermediate tick marks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case you could change the ORDER= option of AXIS99 to, say,&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;order=-10 to 400 by 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and hide the repetitive part of the VALUE= specification in a macro:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    value=(angle=0 rotate=0 height=2cells font="Times New Roman"
           %ticks
           );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Macro definition (depending on the ORDER= specification, of course):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro ticks;
  %local t;
  %do t=1 %to 42;
    %if %sysfunc(mod(&amp;amp;t,10))=2 %then
      tick=&amp;amp;t height=2cells "Day" justify=center height=2cells "%eval(-20+&amp;amp;t*10)";
    %else
      tick=&amp;amp;t height=2cells " " justify=center height=2cells " ";
  %end;
%mend ticks;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other suggestions (some of which allow the omission of the intermediate tick marks) can be found in &lt;A href="http://support.sas.com/resources/papers/proceedings09/192-2009.pdf" target="_blank"&gt;this paper&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;*(EDIT: in the sense that&amp;nbsp;its values can slightly depart from the few tick mark values you want to display)&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 21:56:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476950#M16475</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2018-07-10T21:56:55Z</dc:date>
    </item>
    <item>
      <title>Re: How Can I Delete Un-Needed Blank on Axis X in PROC GPLOT?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476966#M16478</link>
      <description>&lt;P&gt;Hi, FreelanceReinhard:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much.&lt;/P&gt;&lt;P&gt;In order to delete intermediate ticks, I try yours.&lt;/P&gt;&lt;P&gt;Please wait until I report this result.&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 01:17:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-Can-I-Delete-Un-Needed-Blank-on-Axis-X-in-PROC-GPLOT/m-p/476966#M16478</guid>
      <dc:creator>KentaMURANAKA</dc:creator>
      <dc:date>2018-07-11T01:17:45Z</dc:date>
    </item>
  </channel>
</rss>

