<?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: Issue with secondary vertical axis in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118724#M4541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. Eventhough it helps , I am still struggling to get the final one. In my case refline is not zero as the range of left hand y-axis is&amp;nbsp; something like 50 t0 60 and right hand y axis is something&amp;nbsp; like -3 to 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2013 06:03:44 GMT</pubDate>
    <dc:creator>A_B_C</dc:creator>
    <dc:date>2013-01-15T06:03:44Z</dc:date>
    <item>
      <title>Issue with secondary vertical axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118721#M4538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a secondary vertical axis to be displayed as shown in the attached file.&lt;/P&gt;&lt;P&gt;Can we achieve this using proc gplot, if not suggest me alternative methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2013 17:37:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118721#M4538</guid>
      <dc:creator>A_B_C</dc:creator>
      <dc:date>2013-01-08T17:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with secondary vertical axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118722#M4539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With SGPLOT, you can get a graph that shows the data in the same way but maybe not the exact "look" you showed, like the x axis in the middle.&amp;nbsp; Here is the graph and the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DualAxes.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2928_DualAxes.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data curves;&lt;BR /&gt;&amp;nbsp; pi=constant('PI');&lt;BR /&gt;&amp;nbsp; do x=0 to 3 by 0.1;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y1=100*sin(50*x*pi/180);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; y2=-10*(cos(25*x*pi/180));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6in height=4in imagename='DualAxes';&lt;/P&gt;&lt;P&gt;proc sgplot data=curves noautolegend;&lt;/P&gt;&lt;P&gt;&amp;nbsp; series x=x y=y1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; series x=x y=y2 / y2axis;&lt;/P&gt;&lt;P&gt;&amp;nbsp; refline 0;&lt;/P&gt;&lt;P&gt;&amp;nbsp; yaxis min=0 offsetmin=0.5 display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; y2axis max=0 offsetmax=0.5 display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; xaxis display=(nolabel);&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is important to get a "look" closer to your graph, you can do it using GTL.&amp;nbsp; Both these need SAS 9.2 or later.&amp;nbsp; If you are interested, I can work up that code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jan 2013 05:54:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118722#M4539</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-12T05:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with secondary vertical axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118723#M4540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not able to view your attached file correctly, but here is a simple example showing how to add a second vertical axis (on the right-hand-side) in gplot ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 order=(0 to 80 by 20);&lt;/P&gt;&lt;P&gt;axis2 order=(0 to 150 by 25);&lt;/P&gt;&lt;P&gt;axis3 value=(angle=90);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;symbol1 value=dot interpol=join color=red;&lt;/P&gt;&lt;P&gt;symbol2 value=dot interpol=join color=blue;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=sashelp.class out=class; by name; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gplot data=class;&lt;/P&gt;&lt;P&gt;plot height*name=1 / vaxis=axis1 haxis=axis3;&lt;/P&gt;&lt;P&gt;plot2 weight*name=2 / vaxis=axis2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="two_plot.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/2937_two_plot.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 13:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118723#M4540</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2013-01-14T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with secondary vertical axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118724#M4541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer. Eventhough it helps , I am still struggling to get the final one. In my case refline is not zero as the range of left hand y-axis is&amp;nbsp; something like 50 t0 60 and right hand y axis is something&amp;nbsp; like -3 to 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:03:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118724#M4541</guid>
      <dc:creator>A_B_C</dc:creator>
      <dc:date>2013-01-15T06:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with secondary vertical axis</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118725#M4542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is not a problem. Your Y axis can be 50 - 60 and Y2 from -3 to 5.&amp;nbsp; You can set a reference line at Y=50 or Y2=-3.&amp;nbsp;&amp;nbsp; I actually set Y axis min=0 and Y2axis max=0.&amp;nbsp;&amp;nbsp; If you want, you can set these to whatever values you want.&amp;nbsp; It is very flexible. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2013 06:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Issue-with-secondary-vertical-axis/m-p/118725#M4542</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2013-01-15T06:10:00Z</dc:date>
    </item>
  </channel>
</rss>

