Threshold to set colour for different scale range in Heatmap

Versión 1.0.0 (62,5 KB) por Kevin Chng
As of R2019b, There is no in-built function to set the colour of different scaled range in heatmap. Perhaps, this function can faciliate you
95 descargas
Actualizado 30 mar 2020

How to use this function?
The function name is generatecolormapthreshold, first argument is the threshold and second argument is the colour

color= generatecolormapthreshold([1 10 25 30],[0 0.5 1; 0 1 0;1 0 0]);
h = heatmap(fluS,'DayName','noofweek','ColorVariable','Max_Data','Colormap',color,'ColorLimits',[1 30]);
h.FontSize=10;
h.Title='Heatmap';

means that range 1-25 is the colour for [0 1 1], 25-30 is the colour [1 0 0].

Citar como

Kevin Chng (2024). Threshold to set colour for different scale range in Heatmap (https://github.com/KevinChngJY/heatmapthresholdmatlab), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2020a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas

Community Treasure Hunt

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

Start Hunting!

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
1.0.0

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.