필터 지우기
필터 지우기

How might I create a colormap image of matrix x,y(log scale),z?

조회 수: 4 (최근 30일)
tony74
tony74 2016년 2월 11일
편집: Walter Roberson 2016년 4월 23일
How might I do un image of this type?
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.

답변 (2개)

Aditya Desai
Aditya Desai 2016년 2월 11일
You may find contourf useful. Also, log scale can be selected from axes properties.
  댓글 수: 1
Robin Ramstad
Robin Ramstad 2016년 4월 22일
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
Walter Roberson 2016년 4월 23일
편집: Walter Roberson 2016년 4월 23일
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.)

카테고리

Help CenterFile Exchange에서 Colormaps에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by