Back to Data Visualization
colorbar
Add colorbar to current chart
Syntax
colorbar
colorbar('off')
colorbar('location')
c = colorbarDescription
Displays a colorbar showing the color scale for the current heatmap, mesh, or surf plot. Supports location options ('eastoutside', 'westoutside', 'northoutside', 'southoutside') and can return a handle for further property manipulation using set().
Parameters
| Name | Description |
|---|---|
| location(optional) | Location string: 'eastoutside' (default), 'westoutside', 'northoutside', 'southoutside', or 'off' |
Returns
Colorbar handle (when assigned to variable)