Assign mean and max value to a heatmap color bar
    8 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Zeynab Mousavikhamene
      
 el 9 de Abr. de 2020
  
    
    
    
    
    Editada: Mohammad Sami
      
 el 9 de Abr. de 2020
            In order to be have consistant colorbar for all plots, how can I set a min and max to the heatmap color bar? I want to customize the min and max 
The line of code I am using now is:
h = heatmap(x,y,mat,...
    'ColorScaling','log','MissingDataColor','1.00,1.00,1.00','GridVisible','off','MissingDataLabel','');
colormap(flipud(colormap('summer'))); set(gca,'FontSize',14,'FontName','Arial');
thank you
0 comentarios
Respuesta aceptada
  Mohammad Sami
      
 el 9 de Abr. de 2020
        You can specify the color limits in your heat map
%h = heatmap(__,'ColorLimits',[0 10])
2 comentarios
  Mohammad Sami
      
 el 9 de Abr. de 2020
				
      Editada: Mohammad Sami
      
 el 9 de Abr. de 2020
  
			This is arising from setting colorscaling to log. you may wish to omit that or specify the color limits in log scale as.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Color and Styling en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



