Two contour plots on the same figure with two different colormaps?

조회 수: 5 (최근 30일)
Xavier Simón Montero
Xavier Simón Montero 2022년 12월 30일
댓글: Xavier Simón Montero 2023년 1월 9일
I have seen some answers on this, but always use the axes function to create a cartesian axes, which is not the case I am looking for.
Im aiming to plot a contour surface into another with two different colormaps. Tried to introduce it as a property, but it is not the case either. I have got to plot one over another but with the same colormap, so it is not visible
The image below is a wind contour over a pressure contour. Would be something similar. Thanks for your help.

답변 (1개)

MJFcoNaN
MJFcoNaN 2022년 12월 30일
Hello,
As you mentioned, adding a new axes is a normal suggestion to introduce a new colormap, because an axes can only have one colormap property.
I have tried a more tedious way that merging two colormap into one by modifying data range and creating a merged colormap matrix.
  댓글 수: 1
Xavier Simón Montero
Xavier Simón Montero 2023년 1월 9일
The problem I have found when doing new axes is they got to be cartesian, and in my case I got two totally different scales for x and y

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Contour Plots에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by