bluewhitered
BLUEWHITERED(M) returns an M-by-3 matrix containing a blue to white to red colormap, with white corresponding to the CAXIS value closest to zero. This colormap is most useful for images and surface plots with positive and negative values. BLUEWHITERED, by itself, is the same length as the current colormap.
Examples:
------------------------------
figure
imagesc(peaks(250));
colormap(bluewhitered(256)), colorbar
figure
imagesc(peaks(250), [0 8])
colormap(bluewhitered), colorbar
figure
imagesc(peaks(250), [-6 0])
colormap(bluewhitered), colorbar
figure
surf(peaks)
colormap(bluewhitered)
axis tight
Cita come
Nathan Childress (2026). bluewhitered (https://it.mathworks.com/matlabcentral/fileexchange/4058-bluewhitered), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- MATLAB > Graphics > Labels and Styling > Color and Styling > Red >
- MATLAB > Graphics > Labels and Styling > Color and Styling > Blue >
- MATLAB > Graphics > Labels and Styling > Color and Styling > White >
Tag
Riconoscimenti
Ispirato: scalar2colormap, MRIqual, NAWHIMAR Navy-White-Red Divergent Colormap with Automatic Scaling, NIfTI Studio
Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 1.0.0.0 |
