symmetric color map using surf
Afficher commentaires plus anciens
Hi there,
I would like to show in a graph a symmetric color driving from 0 green to either + and - to red. The peak at the bottom should be in colour yellow again.
All areas around 0 in green. Anyone an Idea? Cheers

2 commentaires
KSSV
le 6 Mar 2019
Make your colormap data and try..read bout colormap
Peter Wagner
le 7 Mar 2019
Réponse acceptée
Plus de réponses (1)
Neil Lamas
le 9 Fév 2022
Modifié(e) : Neil Lamas
le 9 Fév 2022
Here is an alternative using the color libraries from matlab:
cmap_pos = jet(64);
cmap_neg = flipud(cmap_pos);
cmap = [cmap_neg; cmap_pos];
surf(peaks)
colormap(cmap)
colorbar
Catégories
En savoir plus sur Blue dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

