How might I create a colormap image of matrix x,y(log scale),z?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How might I do un image of this type?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/154744/image.png)
I need to do an image with a colormap, where x axis represents time, y axis represents particle dimensions in log10 scale and colorbar is the z intensity (the number of particles). Thank you very much.
0 Kommentare
Antworten (2)
Aditya Desai
am 11 Feb. 2016
1 Kommentar
Robin Ramstad
am 22 Apr. 2016
In Matlab 2014b and later colorbar is no longer an axis, it's its own class and thus doesn't allow set(gca,'Yscale','log') since that's an axes property.
Walter Roberson
am 23 Apr. 2016
Bearbeitet: Walter Roberson
am 23 Apr. 2016
There is no built-in way to do this (information current as of R2016a). You will need to go back to the old technique of getting the current colormap, creating an axes and putting an image it in, setting the colormap, and labeling the axes as appropriate. You might want to adapt some of the code in http://www.mathworks.com/matlabcentral/fileexchange/1135-colorbarf
(I created a tool that dug through all of the hidden properties, and located all of the YScale and YScale_I parameters. They all either affect the drawing axes itself, or else changing them has no effect (reads back as linear again immediately.)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Colormaps 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!