Setting your own threshold for a heatmap

15 visualizaciones (últimos 30 días)
Bran
Bran el 3 de Jul. de 2014
Respondida: Image Analyst el 4 de Jul. de 2014
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 comentario
Daniel kiracofe
Daniel kiracofe el 4 de Jul. de 2014
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...

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 4 de Jul. de 2014
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.

Categorías

Más información sobre Data Distribution Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by