Multiple colormaps in a single map figure

1 次查看(过去 30 天)
So my question is regarding specifically tying multiple axesm (not axes) objects together using linkaxes(). My aim is to overlay two separate map axes and create a single figure, not have multiple subplots each with distinct colormaps.
I've read this question: https://www.mathworks.com/matlabcentral/answers/101346-how-do-i-use-multiple-colormaps-in-a-single-figure about a few different ways to use multiple colormaps on one figure. The one that seemed easiest to implement given that my data has separate ranges is the linkaxes() method. The problem is that it appears that when you link two map axes objects, the colormaps becomes merged and no longer separate between the two.
Actually, it seems you can't even have two map axes on the same figure that don't share the same range and colormap. I was hoping to make a background plot using pcolorm, and then overlay colored circles such as what is done in this other question: https://www.mathworks.com/matlabcentral/answers/194554-how-can-i-use-and-display-two-different-colormaps-on-the-same-figure, but the moment that I introduce the other map axes' colormap, the previous one shifts to mirror the same colormap and range. Any further changes change both of them, even when I specify the axesm that I want to change the colormap properties of.
I'd appreciate any ideas. Merging two colormaps into 1 colormap seems a lot more difficult than just somehow overlaying the two as the values vary pretty wildly between both of the datasets I want to show.

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Colormaps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by