Path: news.mathworks.com!not-for-mail
From: "andy " <ecoandy@yahoo.com>
Newsgroups: comp.soft-sys.matlab
Subject: plot second y axis on the fly
Date: Wed, 16 Sep 2009 14:28:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <h8qslj$51t$1@fred.mathworks.com>
Reply-To: "andy " <ecoandy@yahoo.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1253111283 5181 172.30.248.35 (16 Sep 2009 14:28:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 16 Sep 2009 14:28:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1988296
Xref: news.mathworks.com comp.soft-sys.matlab:570810


I would like to plot a second y axis (right side) on the fly and furthermore want multiple data sets referred to for the left axis (or either axis for that matter) and want to be able to have error bars. I bounce among many computers with default installations and would rather avoid plt. 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), but this seems like such a basic need that I feel like I am missing something. My immediate need is to, in Command Window, do something like:

figure
plot(x1,y1,'bo') %left axis
hold on
errorbar(x2,y2,e2,'ro') %left axis
errobar(x3,y3,e3,'g-') %where this one would be on the RIGHT AXIS 

Thank you for your time.

andy