Setting your own threshold for a heatmap

조회 수: 7 (최근 30일)
Bran
Bran 2014년 7월 3일
답변: Image Analyst 2014년 7월 4일
I am trying to create a heat map for my data and I was wondering how I can change the thresholds so that I can input values that will effect the colours displayed in the columns and rows. I don't necessarily wish to use the mean of my row or column. So for example I may want to use a random value and threshold using this?
  댓글 수: 1
Daniel kiracofe
Daniel kiracofe 2014년 7월 4일
Not really sure what you are asking here... by heatmap do you mean you are using pcolor() to plot your data? If so, caxis() will change the scale of the color bar. if that's not what you are getting at, maybe post a little more about what you are doing...

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

답변 (1개)

Image Analyst
Image Analyst 2014년 7월 4일
You can use colormap() to apply a custom colormap. Use caxis to specify what values apply to the first and last values in your data range. Use colorbar() to display a color bar legend.

카테고리

Help CenterFile Exchange에서 Data Distribution Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by