When I execute the command COLORBAR, I receive a colorbar with a full range of 64 colors. I would like the colorbar to reflect only the limited number of colors present in my contour plot.
MATLAB: How to set the colorbar to have a limited number of colors
colormapdwhhgMATLAB
Related Question
- Plot two axesm with different colormaps
- How to plot colorbar as seperate image
- Can I not set the ‘Position’ of the ‘textbox’ based on a specific axis
- Does the colorbar inaccurately reflect the relationship between colors and function values when CDataMapping is set to direct
- How to see the changes in the image color when I manually edit the bounds in the COLORMAPEDITOR in MATLAB (R2013a)
- How to add transparency to a 2D colormap
- Is the plot of ‘imagesc’ flipped if ‘hold on’ is executed first
Best Answer