Can I make a plot (colormap) like this?

조회 수: 2 (최근 30일)
Nisar Ahmed
Nisar Ahmed 2022년 9월 30일
댓글: Jeffrey Clark 2022년 10월 1일
Can I plot like this, any function or package plz?
imagesc([1:ntr], Time(:,1), PhiTime)
colorbar; ylabel('Time (s)');set(gca, 'XTickLabel', []); title('Porosity (true model)'); caxis([0.05 0.3]); colormap('jet');
  댓글 수: 1
Jeffrey Clark
Jeffrey Clark 2022년 10월 1일
@Nisar Ahmed, so you are asking how to create PhiTime yourself, which is simply a matrix of size [1:ntr] by Time(:,1) of values within (or truncated at) caxis([0.05 0.3])? It would depend on what dataset you have to work from, which probably has less or more points than you want in PhiTime. I suspect what appears to be lines in the image are all actually filled circles of some size indicated by some amplitude which is different from the color selection value you would have in PhiTime. So your dataset must include at least four values for each point; from the perspective of the plot something that maps to: horizontal, vertical, color and intensity? So you would loop thru your dataset and index into your matrix to create filled circles of radius intensity and values of the max of whatever is already in the matrix and the color.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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