Thread Subject: colorbar for several subplots

Subject: colorbar for several subplots

From: Alexander Torgovitsky

Date: 31 Aug, 2009 13:42:00

Message: 1 of 3

I have several subplots that share the same colormap. I'd like to add a colorbar. My subplot looks like 4 plots stacked on top of each other (i.e. 4 x 1). I would like to make my colorbar span the entire vertical distance of the 4 plots and be located to the left/right of them. Is this possible? The colorbar command seems to only be able to attach the colorbar to one subplot...

Subject: colorbar for several subplots

From: Aurelien Queffurust

Date: 4 Sep, 2009 08:01:03

Message: 2 of 3

"Alexander Torgovitsky" <atorgo.remove.vitsky@gm.remove.ail.com> wrote in message <h7gjv8$l0m$1@fred.mathworks.com>...
> I have several subplots that share the same colormap. I'd like to add a colorbar. My subplot looks like 4 plots stacked on top of each other (i.e. 4 x 1). I would like to make my colorbar span the entire vertical distance of the 4 plots and be located to the left/right of them. Is this possible? The colorbar command seems to only be able to attach the colorbar to one subplot...


How do I create a colorbar for my subplots and associate the colorbar with the figure rather than each individual axes in MATLAB 7.7 (R2008b) ?
http://www.mathworks.com/support/solutions/en/data/1-16FPP/?solution=1-16FPP

Subject: colorbar for several subplots

From: Alexander Torgovitsky

Date: 4 Sep, 2009 13:34:01

Message: 3 of 3

"Aurelien Queffurust" <tug83@yahoo.fr> wrote in message <h7qhfv$d7c$1@fred.mathworks.com>...
> "Alexander Torgovitsky" <atorgo.remove.vitsky@gm.remove.ail.com> wrote in message <h7gjv8$l0m$1@fred.mathworks.com>...
> > I have several subplots that share the same colormap. I'd like to add a colorbar. My subplot looks like 4 plots stacked on top of each other (i.e. 4 x 1). I would like to make my colorbar span the entire vertical distance of the 4 plots and be located to the left/right of them. Is this possible? The colorbar command seems to only be able to attach the colorbar to one subplot...
>
>
> How do I create a colorbar for my subplots and associate the colorbar with the figure rather than each individual axes in MATLAB 7.7 (R2008b) ?
> http://www.mathworks.com/support/solutions/en/data/1-16FPP/?solution=1-16FPP

Thanks!

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
colorbar Aurelien Queffurust 4 Sep, 2009 04:04:05
subplot Sprinceana 1 Sep, 2009 01:45:20
multiple subplots Sprinceana 1 Sep, 2009 01:45:20
colorbar Sprinceana 1 Sep, 2009 01:45:20
rssFeed for this Thread

Contact us at files@mathworks.com