changing from contour to filled on pcolor plot

3 ビュー (過去 30 日間)
Giulia
Giulia 2023 年 5 月 4 日
回答済み: Piyush 2023 年 5 月 18 日
Hello :)
How can I add contours (at 0.05, 0.075, 0.1 degrees) instead of filled colours in this pcolor plot?
Thank you in advance!
Code I used for the figure is below
cm1 = brewermap(40,'RdPu');
cm1(cm1>1) = 1;
cm1(cm1<0) = 0;
LONLIMS=[-16 7.8];
LATLIMS=[47 62];
figure
m_proj('miller','lon',LONLIMS,'lat',LATLIMS);
m_pcolor(lont(1:end-1),latt(1:end-1),mean(tdh,3)')
shading flat
caxis([0.05 0.1])
colormap(cm1)
m_grid('fontsize',10);
m_gshhs_f ('patch',[.8 .8 .8],'edgecolor',[.1 .1 .1]);
cb = colorbar;
cb.Label.String = 'Horizontal Temperature gradient (\circC)';

回答 (1 件)

Piyush
Piyush 2023 年 5 月 18 日
Refer to the answer given in the following question.
It states how to overlay contour and pcolor.

カテゴリ

Help Center および File ExchangeContour Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by