Direction of data/axes using heatmap
    3 visualizzazioni (ultimi 30 giorni)
  
       Mostra commenti meno recenti
    
Hi there,
I am creating a heatmap using the following code and am generally happy with the results
h=heatmap(data_table,'Cent_Deviation','Height','GridVisible','off')
My only issue is that the y axis is 'upside down' for my purposes - it is a measure of height yet the lowest values are at the top of the figure. Any ideas how to create this heatmap with the smallest y axes run from low to high (as with any 'normal' plot)
Thanks in advance
jack
0 Commenti
Risposte (1)
  Naman Chaturvedi
    
 il 3 Set 2018
        Hi Jack,
You can use the yvalues property of heatmap and use the inverted array of the y axis values to do what you want.
For example: instead of using
>>h=heatmap(data_table);
use
>>h=heatmap([1 2 3 4 5],[5 4 3 2 1],data_table);
HTH.
Vedere anche
Categorie
				Scopri di più su Data Distribution Plots in Help Center e File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!