How to change the colorbar max and min number and correspond a certain color to the colormap ticks
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
KEDI YAN
am 18 Aug. 2024
Beantwortet: Umang Pandey
am 18 Aug. 2024
My data's max and min are 0.09 and 0. I want to
- set the colorbar max and min value to 1 and -1 and
- have green and red corresponds to the max and min values.
The colorbar ticks can be an interpolation from green to red with black at the middle.
Clim does not work because the green color corresponds to the data's maximum instead of the colorbar limit's maximum.
Please help...
0 Kommentare
Akzeptierte Antwort
Umang Pandey
am 18 Aug. 2024
Hi Kedi,
You can refer to the following MATLAB answer that answers a similar question:
Best,
Umang
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Color and Styling finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!