필터 지우기
필터 지우기

refer a colorbar to a specific set of data

조회 수: 2 (최근 30일)
giacomo labbri
giacomo labbri 2020년 6월 14일
댓글: giacomo labbri 2020년 6월 14일
Hi,
I am plotting a 2d temperature field (with countour) and on the same plot I am showing the values of temperature register by a passing ship (just a 1d vector of temperature values) with a color scale. I would like the values showed by a colorbar to only refer to the range of data register by the ship (this range is smaller then the range of 2d temperature field values).
I tried setting limitis for the range of the colorbar with
c=colorbar
c.Limits=[min(ship_temp) max(ship_temp)]
But that does not solve the problem because now the colorbar is almost of one color.
Thanks in advance,
Giacomo
  댓글 수: 2
KSSV
KSSV 2020년 6월 14일
Read about caxis.
giacomo labbri
giacomo labbri 2020년 6월 14일
thanks!

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

답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by