matlab fit a HeatMap into a subplot -
i tried fit heatmap subplot of plot. seems not compatible. every time using heatmap function, seems open heatmap 'canvas'. if save result of heatmap object , use plot or view put figure, open new figure window rather plot on existing one, hold on;
command. there way make heatmap 1 of subplots?
a heatmap example code:
y = [1,2,3,4;5,6,7,8;4,3,2,1;8,7,6,5]; obj = heatmap(y,'symmetric','false','colormap','jet'); %this generate heatmap canvas plot(heatmap); %this display or render heatmap object figure window
it seems should use imagesc rather heatmap function imagesc more compatible. using imagesc plot matrix, can set heatmap subplot.
Comments
Post a Comment