<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168920</link>
    <title>MATLAB Central Newsreader - Copy y-axis</title>
    <description>Feed for thread: Copy y-axis</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2008 by The MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>The MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 08 May 2008 09:12:08 -0400</pubDate>
      <title>Copy y-axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168920#430990</link>
      <author>Peter </author>
      <description>Hi&lt;br&gt;
&lt;br&gt;
Is there an easy way to display the y-axis at the left and&lt;br&gt;
right side at the same time (can only chose left or right&lt;br&gt;
but not both)?&lt;br&gt;
&lt;br&gt;
As it is for the same dataset so I thought plotyy is not the&lt;br&gt;
right function to use.&lt;br&gt;
&lt;br&gt;
However, if someone can let me know how to copy all&lt;br&gt;
properties of the left hand y-axis to the right hand y-axis&lt;br&gt;
(besides its position) maybe plotyy is the right function...&lt;br&gt;
&lt;br&gt;
Thank you,&lt;br&gt;
Peter&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
    <item>
      <pubDate>Thu, 08 May 2008 10:28:04 -0400</pubDate>
      <title>Re: Copy y-axis</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/168920#431001</link>
      <author>helper </author>
      <description>"Peter " &amp;lt;peter.lueckoff@wirtschaft.uni-giessen.de&amp;gt; wrote &lt;br&gt;
in message &amp;lt;fvug57$j74$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there an easy way to display the y-axis at the left and&lt;br&gt;
&amp;gt; right side at the same time (can only chose left or right&lt;br&gt;
&amp;gt; but not both)?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; As it is for the same dataset so I thought plotyy is not &lt;br&gt;
the&lt;br&gt;
&amp;gt; right function to use.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However, if someone can let me know how to copy all&lt;br&gt;
&amp;gt; properties of the left hand y-axis to the right hand y-&lt;br&gt;
axis&lt;br&gt;
&amp;gt; (besides its position) maybe plotyy is the right &lt;br&gt;
function...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thank you,&lt;br&gt;
&amp;gt; Peter&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&lt;br&gt;
The following works for this example:&lt;br&gt;
&lt;br&gt;
% Example&lt;br&gt;
x = 0:0.01:20;&lt;br&gt;
y1 = 200*exp(-0.05*x).*sin(x);&lt;br&gt;
y2 = 0.8*exp(-0.5*x).*sin(10*x);&lt;br&gt;
[AX,H1,H2] = plotyy(x,y1,x,y2,'plot');&lt;br&gt;
&lt;br&gt;
% Match axes ticks&lt;br&gt;
ylim(AX(2),ylim(AX(1)))&lt;br&gt;
set(AX(2),'ytickMode','auto')&lt;br&gt;
&lt;br&gt;
Let me know if this doesn't work in your application.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
</description>
    </item>
  </channel>
</rss>
