These are some utilities that improve the COLORMAP and COLORBAR functions. They are as follows, and each one includes help and examples:
cmapping - Colormap linear mapping/interpolation.
cmfit - Sets the COLORMAP and CAXIS to specific color bands.
cmjoin - Joins colormaps at certain levels.
cmlines - Change the color of plotted lines using the colormap.
cbfit - Changes COLORMAP and CAXIS to fit between colorbar's ticks.
cbfreeze - Freezes the colormap of a colorbar.
cbhandle - Gets the handle of current colorbar or its peer axes.
cblabel - Adds a label to the colorbar.
cbunits - Adds units (and ISU prefixes) to the colorbar ticklabels.
Following functions I submitted here previously were renamed to:
SETCOLORMAPS -> CMJOIN
COLORBARFIT -> CBFIT
Bugs reports and suggestions will be very appreciated!
Carlos Adrian Vargas Aguilera (2022). COLORMAP and COLORBAR utilities (Jul 2014) (https://www.mathworks.com/matlabcentral/fileexchange/24371-colormap-and-colorbar-utilities-jul-2014), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired: newcolorbar: multiple colormaps in the same axes, cbarrow: pointy ends for colorbars, Easy Plot EEG Brain Network Matlab, quiver2.m v1.2 (Nov 2009), rgb2hex and hex2rgb, rgbmap color maps, xunits, yunits and zunits.m (Jul 2014)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!