Multiple colormap not working when using COLORMAP(AX,...)
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
kevin
am 8 Okt. 2015
Kommentiert: Image Analyst
am 8 Okt. 2015
Hi, when trying to set two colormaps on one image, with the simple example below, the first colormap get overwritten.
figure
ax1 = subplot(2,1,1);
surf(peaks)
colormap(ax1,spring)
ax2 = subplot(2,1,2);
surf(peaks)
colormap(ax2,winter)
matlab R2013a
1 Kommentar
Akzeptierte Antwort
Kelly Kearney
am 8 Okt. 2015
Prior to R2014b, colormaps could only be applied to a figure as a whole, not to individual axes. There are a few workarounds, such as using freezecolors, or adding an offset to the data in one subplot and creating a colormap that includes different colors for the two data ranges.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Blue 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!