colorbar position on imageplot with multiple figures
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have an image plot with two figure on it. When I add the color bar, with whatever location parameters I used, it uses those location parameters relative to the last image in the image plot.
Can I make the colorbar more global, i.e., below both images in my imageplot?
0 comentarios
Respuestas (1)
Adam Filion
el 17 de Abr. de 2013
Editada: Adam Filion
el 17 de Abr. de 2013
Colorbars are associated with a particular axis. If you do not specify which axis, then it will be added to the last one you used. See the documentation on colorbar for info on how to use a handle to the axis to specify which axis to add it to using the peer property of the colorbar:
>> doc colorbar
I don't know of an easy way to place a colorbar in an arbitrary location, such as spanning the width of a figure with two subplots above it. The best solution I know of offhand is to use the GUI Layout Toolbox from the File Exchange to construct this:
It's a very powerful set of tools with great documentation to go with it. If anyone has a simpler solution (another FEX submission maybe?) I'd love to hear it.
0 comentarios
Ver también
Categorías
Más información sobre Purple en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!