How to set specific contour line color/style using contourf?
11 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Adewale Odukomaiya
le 15 Mai 2020
Commenté : Adewale Odukomaiya
le 17 Mai 2020
Is it possible to set the line color of just one specific contour line when using contourf? In the attached figure? I would like to highlight the 150 contour by making it a different color, thickness, and maybe line type.

0 commentaires
Réponse acceptée
darova
le 16 Mai 2020
Use contour again
hold on
contour(x,y,z,[150 150],'y','linew',2)
hold off
4 commentaires
darova
le 16 Mai 2020
Create contour for levels you want
contour(x,y,z,[0 50 100 200 250 300],'showtext','on')
Create contour for '150' level separately with label
hold on
conttour(x,y,z,[150 150],'showtext','on')
hold off
Plus de réponses (0)
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!
