필터 지우기
필터 지우기

Multiple colormaps in a single map figure

조회 수: 1 (최근 30일)
Aaron Anderson
Aaron Anderson 2017년 5월 19일
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에서 Green에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by