colorbar
Colorbar showing color scale.
📝 Syntax
colorbar()
colorbar('off')
colorbar(location)
colorbar(..., propertyName, propertyValue)
colorbar(target, ...)
colorbar(target, 'off')
c = colorbar(...)
📥 Input argument
propertyName - a scalar string or row vector character.
propertyValue - a value.
target - Target: axes.
'off' - deletes colorbar associated with the current axes.
location - location of the colorbar (e.g. 'north','south','east','west', ...).
📤 Output argument
c - graphics object: axes on color bar.
📄 Description
colorbar adds a color bar into a plot.
It can be placed at different locations around the axes.
Supported locations include: 'north','south','east','west', 'northoutside','southoutside','eastoutside','westoutside'.
💡 Examples
🔗 See also
🕔 History
1.0.0
initial version
1.15.0
added support for location parameter
Last updated
Was this helpful?