Skip to Main Content Skip to Search
Product Documentation

addXLabel (HeatMap) - Label x-axis of heat map

Syntax

addXLabel(HMObject, Label)
addXLabel(HMObject, Label, 'Property1Name', Property1Value, 'Property2Name', Property2Value, ...)
H = addXLabel(HMObject)

Input Arguments

HMObject

HeatMap object created with the function HeatMap.

Label

String used as the x-axis label in the HeatMap window.

Output Arguments

HHandle to a MATLAB text object used as the x-axis label for the heat map.

Description

addXLabel(HMObject, Label) adds a label below the x-axis of a heat map displayed in the HeatMap window.

addXLabel(HMObject, Label, 'Property1Name', Property1Value, 'Property2Name', Property2Value, ...) specifies text object properties for the x-axis label. For more information on the property name/property value pairs you can use to modify the text, see Text Properties.

H = addXLabel(HMObject) returns the handle to the text object used as the x-axis label for the heat map.

Examples

Supply an x-axis label for the HeatMap object created in the Examples section of the HeatMap function reference page. Use 12-point, italic text for the label.

addXLabel(hmo, 'Times', 'FontSize', 12, 'FontAngle', 'Italic')

Return a handle to the x-axis label text object, then use the set function to change the font size to 14 points.

h = addXLabel(hmo)
set(h, 'FontSize', 14)

See Also

addTitle | 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