Modify existing colormap ranges
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Vivek Gupta
il 29 Apr 2020
Risposto: Walter Roberson
il 29 Apr 2020
Hello all. I'm using the colormap "jet" to show magnitude of a contour plot. Is there a way to manually adjust the range of the colormap?
More specifically, here is an image of the colormap:

Now instead of going from dark blue to dark red, I want to be able to go from dark blue to orange, or from turquose to dark red. Basically, is there an easy way to have control over this? Or if not, is there a simple method to re-create a colormap from scratch?
Thank you for your help.
0 Commenti
Risposta accettata
Walter Roberson
il 29 Apr 2020
temp = jet(255);
stop_at_orange = temp(1:170,:);
colormap(stop_at_orange)
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Color and Styling in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!