Home Matlab heatmap: Making a uniform colorscale for all subplots
Reply: 0

Matlab heatmap: Making a uniform colorscale for all subplots

user1098 Published in April 22, 2018, 8:07 pm

I have 4 different dataset A,B,C,Dto generate 4 heatmaps in a subplot

xvalues = {'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16'};
yvalues = {'1','2','3','4','5','6','7','8','9','10','11','12','13','14','15','16'};

HA = heatmap(xvalues,yvalues,A);
HA.Title = 'A';
HA.XLabel = 'area';
HA.YLabel = 'area';

HB = heatmap(xvalues,yvalues,B);
HB.Title = 'B';
HB.XLabel = 'area';
HB.YLabel = 'area';

HC = heatmap(xvalues,yvalues,C);
HC.Title = 'C';
HC.XLabel = 'area';
HC.YLabel = 'area';

HD = heatmap(xvalues,yvalues,D);
HD.Title = 'D';
HD.XLabel = 'area';
HD.YLabel = 'area';

Since each dataset has a different max and min value, the heatmap used the corresponding min and max values of each dataset for its color scale, so all 4 plots looked similar to each other. Is there a way to make a color scale so that it's uniformly used across all subplots? (will be easier to see the differences between the subplots)

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.31121 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO