Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

Assigned colorbar heights in pcolor subplots

1 visualizzazione (ultimi 30 giorni)
Heidi Hirsh
Heidi Hirsh il 26 Ago 2019
Chiuso: MATLAB Answer Bot il 20 Ago 2021
I am making a lot of figures with pcolor subplots. I want all the x-axes to match so I am manually assigned the colorbar positions. Right now I am doing this by a trial and error approach to get the colorbars lined up. Is there a "cheat sheet" somewhere that would tell me where the default subplots line up for assigning heights of the colorbars.
This is the line I am playing with
c=colorbar; set(c, 'Position', [0.93 .11 .015 .2])
Does my question make sense?

Risposte (1)

Image Analyst
Image Analyst il 26 Ago 2019
First make up whatever colormap you want. Then look at all your data to find the OVERALL min and max. Then for each axes, use colorbar() and caxis() to make them all match.

Questa domanda è chiusa.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by