Overlay contour on colored image
이전 댓글 표시
I want to overlay contour on image using imagesc. The y-direction of both the figure is coming opposite to each other. I am unable to flip the Y direction by setting gca.
I am new to Matlab please help.
I have attached my data.m file.
My code:
imagesc(dates,depth,temp)
colormap(jet);
ylim([50 200])
hold on
dep=depth(1:71);
TT=temp(1:71,:)
contour(dates,dep,TT);
댓글 수: 5
Walter Roberson
2021년 2월 3일
imagesc(dates,depth,flipud(temp))
Adam Danz
2021년 2월 3일
> I am unable to flip the Y direction by setting gca
What's preventing you from doing that?
Bjorn Gustavsson
2021년 2월 3일
pcolor(dates,depth,temp),shading flat
Dolly More
2021년 2월 3일
Adam Danz
2021년 2월 3일
This answer shows how to use two different colormaps for the imagesc and contour plots.
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Contour Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!