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 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!