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
Walter Roberson 2021 年 2 月 3 日
imagesc(dates,depth,flipud(temp))
Adam Danz
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
Bjorn Gustavsson 2021 年 2 月 3 日
pcolor(dates,depth,temp),shading flat
Dolly More
Dolly More 2021 年 2 月 3 日
Hey everyone thanks for replying back. My contour was overlaying all this while, it was having same color as image. i plotted black contour over it and it worked. Thank you so much!
Adam Danz
Adam Danz 2021 年 2 月 3 日

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeContour Plots についてさらに検索

タグ

質問済み:

2021 年 2 月 3 日

コメント済み:

2021 年 2 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by