PCOLOR appearance/shading changes when PLOT items are on the same axes!?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Vector Fields dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!