contourf with more colours
Ältere Kommentare anzeigen
With the function contourf I created the picture below. I would like to have more color gradations in it. I succeeded in the colorbar.
Does anyone have an idea?

Akzeptierte Antwort
Weitere Antworten (1)
Abdolkarim Mohammadi
am 27 Mai 2020
Bearbeitet: Abdolkarim Mohammadi
am 27 Mai 2020
This works for both contour and contourf. You can either tell MATLAB how many levels you want.
contour (X,Y,Z, levels);
If levels is a positive integer, it tells MATLAB how many levels you want. If levels is a vector, it tells MATLAB at which specific heights of Z you want levels to be drawn.
Kategorien
Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!