Documentation Center

  • Trial Software
  • Product Updates

addYLabel (HeatMap)

Label y-axis of heat map


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

Input Arguments


HeatMap object created with the function HeatMap.


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

Output Arguments

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


addYLabel(HMObject, Label) adds a label to the left of the y-axis of a heat map displayed in the HeatMap window.

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

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


Supply a y-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.

addYLabel(hmo, 'Samples', 'FontSize', 12, 'FontAngle', 'Italic')

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

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

More About

See Also

| | | |

Was this topic helpful?