about contour and transparent
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I am trying to plot coutour overlaying on the top of imagesc. But my result is contour blocking the imagesc. I tried to make countour transparency.
So, please show me how to make countour transparency.
Thanks.
0 commentaires
Réponse acceptée
Walter Roberson
le 11 Juin 2011
thick = 0.8; %alpha value
ch = contourf(...);
patches = findobj(ch,'-property','AlphaData')
for ph = patches
set(ph,'AlphaData', thick * get(ph,'AlphaData'));
end
Plus de réponses (1)
Jaime Calle
le 4 Juil 2011
Modifié(e) : John Kelly
le 2 Mar 2015
Once you have the handle to contour plot (ch), look for 'FaceAlpha' property in the contour plot children.
Patches = findobj(ch,'-property','FaceAlpha');
Then you can set transparency value to those patches by means of:
set(Patches, 'FaceAlpha', thick)
For patches and surfaces, the object property is 'FaceAlpha':
0 commentaires
Voir également
Catégories
En savoir plus sur Contour Plots dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!