Skip to Main Content Skip to Search
Product Documentation

addTitle (HeatMap) - Add title to heat map

Syntax

addTitle(HMObject, Title)
addTitle(HMObject, Title, 'Property1Name', Property1Value, 'Property2Name', Property2Value, ...)
H = addTitle(HMObject)

Input Arguments

HMObject

HeatMap object created with the function HeatMap.

Title

String used as the title in the HeatMap window.

Output Arguments

HHandle to a MATLAB text object used as the title for the heat map.

Description

addTitle(HMObject, Title) adds a title above the heat map displayed in the HeatMap window.

addTitle(HMObject, Title, 'Property1Name', Property1Value, 'Property2Name', Property2Value, ...) specifies text object properties for the title. For more information on the property name/property value pairs you can use to modify the text, see Text Properties.

H = addTitle(HMObject) returns the handle to the text object used as the title for the heat map.

Examples

Supply a title for the HeatMap object created in the Examples section of the HeatMap function reference page. Use 14-point, italic text for the title.

addTitle(hmo, 'Example Heat Map', 'FontSize', 14, ...
              'FontAngle','Italic')           

Return a handle to the title text object, then use the set function to change the font size to 16 points.

h = addTitle(hmo)
set(h, 'FontSize', 16)

See Also

addXLabel | addYLabel | HeatMap | plot | view

How To

  


Free Computational Biology Interactive Kit

See how to analyze, visualize, and model biological data and systems using MathWorks products.

Get free kit

Trials Available

Try the latest computational biology products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS