<?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: SGPLOT: how to get tick marks inside? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343459#M11902</link>
    <description>&lt;P&gt;I will try this solution, thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Tested and approved!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2017 13:56:00 GMT</pubDate>
    <dc:creator>Alain38</dc:creator>
    <dc:date>2017-03-23T13:56:00Z</dc:date>
    <item>
      <title>SGPLOT: how to get tick marks inside?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343401#M11899</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like a graph with tick marks inside and all around.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I started to add another X and Y axes with this code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data = Sample;
	xaxis values=('30Jun1930'd to '30Jun2020'd);
	yaxis values=(-3 to 18 by 1);

/* 2nd X and Y axes */
	x2axis values=('30Jun1930'd to '30Jun2020'd) display=(nolabel novalues);	
	y2axis values=(-3 to 18 by 1) display=(nolabel novalues);

	series y=ln_Wealth_Portfolio x=Date / x2axis y2axis;
	series y=ln_Wealth_Index x=Date;
	format Date YEAR4.;
	keylegend / location=inside position=topleft down=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I did not find how to draw the tick marks inside. I read somewhere: "If you specify a negative number, tick marks are drawn &lt;SPAN class="highlight selected"&gt;inside&lt;/SPAN&gt; the axis" but I don't know how to do it, and I have dates on my X-axis...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me please?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 16:47:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343401#M11899</guid>
      <dc:creator>Alain38</dc:creator>
      <dc:date>2017-03-22T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to get tick marks inside?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343425#M11900</link>
      <description>&lt;P&gt;I've never seen an option for SGPLOT that does what you describe, but you can suppress the ticks with display=(noticks) and you can draw a grid inside the plot area, like this&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;
scatter x=height y=weight;
xaxis display=(noticks nolabel novalues) grid;
yaxis display=(noticks nolabel novalues) grid;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Mar 2017 17:31:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343425#M11900</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-03-22T17:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to get tick marks inside?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343445#M11901</link>
      <description>&lt;P&gt;Rick is correct that SGPLOT does not expose such an option. &amp;nbsp;However, GTL supports TICKSTYLE=Outside | Inside | Across. &amp;nbsp;If necessary, you could export the GTL from the SGPLOT procedure (use tmplout option) and then add this option to the xaxisopts option bundle.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc template;&lt;BR /&gt;&amp;nbsp; define statgraph class;&lt;BR /&gt;&amp;nbsp; begingraph;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; layout overlay / &lt;STRONG&gt;xaxisopts=(tickstyle=inside)&lt;/STRONG&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; scatterplot x=height y=weight;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; endlayout;&lt;BR /&gt;&amp;nbsp; endgraph;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgrender data=sashelp.class template=class;&lt;BR /&gt;run;&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/7906i8F51A2A22B909D8D/image-size/medium?v=1.0&amp;amp;px=-1" border="0" alt="Spider1.png" title="Spider1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2017 18:06:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343445#M11901</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2017-03-22T18:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: SGPLOT: how to get tick marks inside?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343459#M11902</link>
      <description>&lt;P&gt;I will try this solution, thank you &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: Tested and approved!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2017 13:56:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/m-p/343459#M11902</guid>
      <dc:creator>Alain38</dc:creator>
      <dc:date>2017-03-23T13:56:00Z</dc:date>
    </item>
  </channel>
</rss>

