Path: news.mathworks.com!not-for-mail
From: "Paul Mennen" <nospam@mennen.org>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plot second y axis on the fly
Date: Wed, 16 Sep 2009 16:59:25 +0000 (UTC)
Organization: Sigknowledge
Lines: 24
Message-ID: <h8r5hc$qk9$1@fred.mathworks.com>
References: <h8qslj$51t$1@fred.mathworks.com>
Reply-To: "Paul Mennen" <nospam@mennen.org>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253120365 27273 172.30.248.38 (16 Sep 2009 16:59:25 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Sep 2009 16:59:25 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869812
Xref: news.mathworks.com comp.soft-sys.matlab:570859


"andy " wrote in message
> plotyy also doesn't seem to have this capacity (at least with
> reference to having multiple sets on each side, some with error
> bars and some without),

Andy, I believe with enough work you can coerce plotyy to do such a thing
although it will be more difficult than it should be. There is an alternative
one the file exchange called plt:

http://www.mathworks.com/matlabcentral/fileexchange/4936 

For an example of what you are trying to do (several plots mixing
traces, bars, error bars) try the example "plt\demo\pltvbar.m".

Note that you can put as many of the traces on the right hand axis
as you want - e.g. the parameter 'Right',[2 4 5], will put the 2nd,
4th and the 5th traces on the right axis with the remaining on the left.

If the documentation (plt.chm) doesn't answer all your questions, feel free to ask me:

paul (at) mennen (dot) org

I hope that helps you out.
~Paul