<?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: Upside and Rightside Ticks by GPLOT/SGPLOT in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/564048#M18258</link>
    <description>&lt;P&gt;Here's one way to get an axis on the right-side with sgplot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ls=1.5 h=20pt "IBM Stock Price";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks (where=(stock='IBM')) noautolegend;&lt;BR /&gt;format date year4.;&lt;BR /&gt;series y=close x=date / lineattrs=(color=blue);&lt;BR /&gt;scatter y=close x=date / y2axis markerattrs=(size=0px color=blue symbol=circlefilled);&lt;BR /&gt;yaxis values=(0 to 225 by 25);&lt;BR /&gt;y2axis values=(0 to 225 by 25);&lt;BR /&gt;xaxis display=(nolabel) values=('01jan1990'd to '01jan2000'd by year);&lt;BR /&gt;run;&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="SGPlot15.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30042i63F3A80174A71F19/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot15.png" alt="SGPlot15.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jun 2019 12:10:51 GMT</pubDate>
    <dc:creator>GraphGuy</dc:creator>
    <dc:date>2019-06-06T12:10:51Z</dc:date>
    <item>
      <title>Upside and Rightside Ticks by GPLOT/SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/563928#M18249</link>
      <description>&lt;P&gt;Are the upside and rightside ticks available in GPLOT/SGPLOT?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 560px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30027iF1F0472DE86FB490/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the following, I added the rightside ticks manually, but wonder whether there is any embedded function.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _;
do x=0 to 6.28 by 0.01;
y=sin(x);
output;
end;
run;
symbol1 i=join;
symbol2 i=none;
axis1 order=(-1 to 1 by 1) minor=none;
axis2 order=(0 to 6.28 by 1.57) minor=none;
proc gplot;
plot1 y*x/vaxis=axis1 haxis=axis2 nofr;
plot2 y*x/vaxis=axis1 haxis=axis2 nofr overlay;
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="2.png" style="width: 716px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30028i8D7F2AB6F1D15ACF/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 00:04:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/563928#M18249</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2019-06-06T00:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Upside and Rightside Ticks by GPLOT/SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/563939#M18250</link>
      <description>&lt;P&gt;Look here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/td-p/343401" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/SGPLOT-how-to-get-tick-marks-inside/td-p/343401&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 01:23:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/563939#M18250</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2019-06-06T01:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Upside and Rightside Ticks by GPLOT/SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/564043#M18256</link>
      <description>&lt;P&gt;With gplot, you can add a 'plot2' to get an axis on the right-hand side. I typically plot the same data a 2nd time, but use a blank/invisible marker value and line interpolation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;symbol1 value=none interpol=join color=blue;&lt;BR /&gt;symbol2 value=none interpol=none color=white;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;axis1 order=(0 to 225 by 25) minor=none offset=(0,0);&lt;BR /&gt;axis2 label=none order=('01jan1990'd to '01jan2000'd by year) minor=none;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ls=1.5 h=20pt "IBM Stock Price";&lt;BR /&gt;proc gplot data=sashelp.stocks (where=(stock='IBM'));&lt;BR /&gt;format date year4.;&lt;BR /&gt;plot close*date=1 / vaxis=axis1 haxis=axis2;&lt;BR /&gt;plot2 close*date=2 / vaxis=axis1 haxis=axis2;&lt;BR /&gt;run;&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="gplot12.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30040i1ECB7459C9AF09CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="gplot12.png" alt="gplot12.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 11:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/564043#M18256</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-06-06T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Upside and Rightside Ticks by GPLOT/SGPLOT</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/564048#M18258</link>
      <description>&lt;P&gt;Here's one way to get an axis on the right-side with sgplot:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 ls=1.5 h=20pt "IBM Stock Price";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=sashelp.stocks (where=(stock='IBM')) noautolegend;&lt;BR /&gt;format date year4.;&lt;BR /&gt;series y=close x=date / lineattrs=(color=blue);&lt;BR /&gt;scatter y=close x=date / y2axis markerattrs=(size=0px color=blue symbol=circlefilled);&lt;BR /&gt;yaxis values=(0 to 225 by 25);&lt;BR /&gt;y2axis values=(0 to 225 by 25);&lt;BR /&gt;xaxis display=(nolabel) values=('01jan1990'd to '01jan2000'd by year);&lt;BR /&gt;run;&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="SGPlot15.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30042i63F3A80174A71F19/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot15.png" alt="SGPlot15.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 12:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Upside-and-Rightside-Ticks-by-GPLOT-SGPLOT/m-p/564048#M18258</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2019-06-06T12:10:51Z</dc:date>
    </item>
  </channel>
</rss>

