<?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: Space between tick and tick label in proc gplot in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348453#M12103</link>
    <description>&lt;P&gt;Here are three starter solutions.&amp;nbsp; Each could be refined depending on which way works best for you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;symbol v=dot color=blue;

* Solution #1;
axis1 order=(11 to 16)
      minor=none
      major=(height=10 color=white );
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1;
   run;
   quit;

* Solution #2;
goptions reset=axis;
axis1 style=0;
axis2 order=(40 to 80 by 10)
      value=(t=1 color=white)
      minor=(n=1);
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;

* Solution #3;
goptions reset=axis;
axis1 style=0;
axis2 offset=(10)
      minor=(n=1);
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;

* Solution #4;
goptions reset=axis;
axis1 style=0;
axis2 style=0
      offset=(10)
      minor=(n=1);

data anno (keep=function xsys ysys x y line);
   retain xsys ysys '2' line 1 x 11;
   function='move';
      y=50; output anno;
   function='draw';
      y=80; output anno;
   run;

proc gplot data=sashelp.class
           anno=anno;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 08 Apr 2017 21:18:41 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2017-04-08T21:18:41Z</dc:date>
    <item>
      <title>Space between tick and tick label in proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348362#M12101</link>
      <description>&lt;P&gt;Hi,all &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;I'm looking for a way to add margin (space / offset) between tick and tick label with proc gplot.&lt;BR /&gt;Even with the method in the case of "proc sgplot", it is ok, but we are seeking information with proc gplot as much as possible.&lt;BR /&gt;I attach an image if what I want to do.&lt;BR /&gt;Those who knows, thank you for your cooperation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class; 
 reg x=height y=weight; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;output image of above code is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8224iBE3F3FCB00F113C3/image-size/small?v=1.0&amp;amp;px=-1" border="0" alt="position_tick_label_gplot_sas.png" title="position_tick_label_gplot_sas.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what I want to do is below.&lt;/P&gt;&lt;P&gt;Check X axis label position.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8225iFFC31CF5DFBF1A8D/image-size/small?v=1.0&amp;amp;px=-1" border="0" alt="position_tick_label_gplot_sas_margin.png" title="position_tick_label_gplot_sas_margin.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have a fine day.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2017 04:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348362#M12101</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2017-04-08T04:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Space between tick and tick label in proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348453#M12103</link>
      <description>&lt;P&gt;Here are three starter solutions.&amp;nbsp; Each could be refined depending on which way works best for you.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;symbol v=dot color=blue;

* Solution #1;
axis1 order=(11 to 16)
      minor=none
      major=(height=10 color=white );
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1;
   run;
   quit;

* Solution #2;
goptions reset=axis;
axis1 style=0;
axis2 order=(40 to 80 by 10)
      value=(t=1 color=white)
      minor=(n=1);
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;

* Solution #3;
goptions reset=axis;
axis1 style=0;
axis2 offset=(10)
      minor=(n=1);
proc gplot data=sashelp.class;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;

* Solution #4;
goptions reset=axis;
axis1 style=0;
axis2 style=0
      offset=(10)
      minor=(n=1);

data anno (keep=function xsys ysys x y line);
   retain xsys ysys '2' line 1 x 11;
   function='move';
      y=50; output anno;
   function='draw';
      y=80; output anno;
   run;

proc gplot data=sashelp.class
           anno=anno;
   plot height*age/haxis=axis1
                   vaxis=axis2
                   vref=50;
   run;
   quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 08 Apr 2017 21:18:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348453#M12103</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2017-04-08T21:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Space between tick and tick label in proc gplot</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348494#M12105</link>
      <description>Hi,ArtC. Thank you very very much for your answering.It's so surprise that we have many ways for what I want on axis label !!</description>
      <pubDate>Sun, 09 Apr 2017 07:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Space-between-tick-and-tick-label-in-proc-gplot/m-p/348494#M12105</guid>
      <dc:creator>t_ar_taat</dc:creator>
      <dc:date>2017-04-09T07:31:40Z</dc:date>
    </item>
  </channel>
</rss>

