PCOLOR appearance/shading changes when PLOT items are on the same axes!?
이전 댓글 표시
Hi,
This one is really baffling me. I am plotting a regularly gridded bathymetry dataset using pcolor and then overplotting markers where I have sampled oceanographic data using the plot command as follows:
h=pcolor(lon,lat,depth);
set(h,'linestyle','none');
shading interp;
hold;
h1=plot(lon_CTD,lat_CTD,'kd','markeredgecolor','w','markerfacecolor','k','markersize',4);
The above works fine, but if I remove the markers either using the plot editor of delete(h1), the shading/style of the pcolor image becomes messy and distorted. If I add the markers again it returns to looking corectly shaded. It is almost as if when the plot objects are removed, the shading becomes part "flat" and part "interp"! I odnt understand why the appearance of the pcolor object changes at all.
Many thanks Ziggy
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Vector Fields에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!