Coloring
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Suppose I have a code that plots contour lines. How might I color in the the region say of altitude >h?
Many thanks.
0 Kommentare
Akzeptierte Antwort
fjnb86
am 2 Apr. 2012
I would use contour with specification of level and combine with hold on.
Take al look to the documentation
contour(Z,v) draws a contour plot of matrix Z with contour lines at the data values specified in the monotonically increasing vector v. The number of contour levels is equal to length(v). To draw a single contour of level i, use contour(Z,[i i]). Specifying the vector v sets the LevelListMode to manual to allow user control over contour levels.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Contour Plots finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!