exponenta event banner

посмотреть

Отображение тепловой карты или кластерграммы

Синтаксис

Описание

пример

view(hm_cg_object) отображает тепловую карту или кластерграмму hm_cg_object.

Примеры

свернуть все

Создайте матрицу данных.

data = gallery('invhess',20);

Отображение тепловой карты данных 2-D цвета.

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 ]'

Figure HeatMap 1 contains an axes. The axes contains an object of type image.

Отображение значений данных в тепловой карте.

hmo.Annotate = true;
view(hmo)

Figure HeatMap 1 contains an axes. The axes contains 401 objects of type image, text.

Используйте plot функция для отображения тепловой карты на другой фигуре, указанной маркером изображения fH.

fH = figure;
hA = plot(hmo,fH);

Figure contains an axes. The axes contains 401 objects of type image, text.

Использовать дескриптор возвращаемых осей hA для задания свойств осей.

hA.Title.String = 'Inverse of an Upper Hessenberg Matrix';
hA.XTickLabelMode = 'auto';
hA.YTickLabelMode = 'auto';

Figure contains an axes. The axes with title Inverse of an Upper Hessenberg Matrix contains 401 objects of type image, text.

Входные аргументы

свернуть все

Тепловая карта или объект кластерграммы, указанный как HeatMap объект или clustergram объект.

См. также

|

Представлен в R2009b