Display heatmap or clustergram
view(hm_cg_object)
example
view(hm_cg_object) displays a heatmap or clustergram of hm_cg_object.
hm_cg_object
collapse all
Create a matrix of data.
data = gallery('invhess',20);
Display a 2-D color heatmap of the data.
hmo = HeatMap(data);
Standardize: '[column | row | {none}]' Symmetric: '[true | false].' DisplayRange: 'Scalar.' Colormap: [] ImputeFun: 'string -or- function handle -or- cell array' ColumnLabels: 'Cell array of strings, or an empty cell array' RowLabels: 'Cell array of strings, or an empty cell array' ColumnLabelsRotate: [] RowLabelsRotate: [] Annotate: '[on | {off}]' AnnotPrecision: [] AnnotColor: [] ColumnLabelsColor: 'A structure array.' RowLabelsColor: 'A structure array.' LabelsWithMarkers: '[true | false].' ColumnLabelsLocation: '[ top | {bottom} ]' RowLabelsLocation: '[ {left} | right ]'
Display the data values in the heatmap.
hmo.Annotate = true; view(hmo)
Use the plot function to display the heatmap in another figure specified by the figure handle fH.
plot
fH
fH = figure; hA = plot(hmo,fH);
Use the returned axes handle hA to specify the axes properties.
hA
hA.Title.String = 'Inverse of an Upper Hessenberg Matrix'; hA.XTickLabelMode = 'auto'; hA.YTickLabelMode = 'auto';
HeatMap
clustergram
Heatmap or clustergram object, specified as a HeatMap object or clustergram object.
clustergram | HeatMap
You have a modified version of this example. Do you want to open this example with your edits?