Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Single colorbar on figure with subplots?
Date: Sun, 12 Apr 2009 19:33:01 +0000 (UTC)
Organization: Oxford University
Lines: 7
Message-ID: <grtflc$h5u$1@fred.mathworks.com>
References: <grso1p$mi5$1@fred.mathworks.com> <17701574.29089.1239559642450.JavaMail.jakarta@nitrogen.mathforum.org>
Reply-To: <HIDDEN>
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 1239564781 17598 172.30.248.35 (12 Apr 2009 19:33:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 12 Apr 2009 19:33:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1073021
Xref: news.mathworks.com comp.soft-sys.matlab:532182


AMK <kennaster@gmail.com> wrote:<17701574.29089.1239559642450.JavaMail.jakarta@nitrogen.mathforum.org>...
> Hi Thanks for the edits.  This does add the single color bar to reference two sufrace plots in a subplot, but it appears to decouple the colorbar values from the original data.  For example, max(z1) and max(z2) are both around 14, but the new single color bar goes from 0 - 80.  What is this new colorbar axes referencing?
> 
> Thanks,
> Adam

It's referencing nothing. Grab the handle to the colorbar and set the limits manually.