changing from contour to filled on pcolor plot
3 次查看(过去 30 天)
显示 更早的评论
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)';
0 个评论
回答(1 个)
Piyush
2023-5-18
Refer to the answer given in the following question.
It states how to overlay contour and pcolor.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!