COLORMAP and COLORBAR utilities (Jul 2014)
These are some utilities that improve the COLORMAP and COLORBAR functions. They are as follows, and each one includes help and examples:
COLORMAP utilites:
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.
COLORBAR utilities:
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
Enjoy it!
Bugs reports and suggestions will be very appreciated!
Citar como
Carlos Adrian Vargas Aguilera (2024). COLORMAP and COLORBAR utilities (Jul 2014) (https://www.mathworks.com/matlabcentral/fileexchange/24371-colormap-and-colorbar-utilities-jul-2014), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- MATLAB > Graphics > Formatting and Annotation > Colormaps >
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Colorbar >
Etiquetas
Agradecimientos
Inspirado por: usercolormap, freezeColors / unfreezeColors, imagescnan.m v2.1 (Aug 2009), CMAPLINE, real2rgb & colormaps
Inspiración para: 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!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
cm_and_cb_utilities/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.12.0.0 | Added 'upE' and 'normal' extra options for CBUNITS. Fixed bugs related with input reading (thanks to Maxime Desbiens). |
||
1.11.0.0 | CBUNITS Fixed small bug with '1' unit. |
||
1.10.0.0 | Fixed 'log' scale bugs in CBUNITS. |
||
1.9.0.0 | Changed CBUNITS: Forces same decimals on labels. Scientific notation may be 'eN', '1/eN' or SI prefix. |
||
1.8.0.0 | Rewritten CB codes with new optional inputs. Fixed bugs concerned with scientific notation. Included prefix notation like 'M' instead of 'x10^6'. Not tested for log scale. |
||
1.7.0.0 | Fixed bug related with colorbar title position, by Chris Rapson. |
||
1.6.0.0 | Fixed some bugs on CBUNITS and CBFIT. |
||
1.3.0.0 | Fixed BUGs on CBFREEZE (thanks to Sergio Muniz) and CMAPPING (thanks to Andrea Rumazza). |
||
1.2.0.0 | Fixed bug in CBHANDLE with colorbar handle input |
||
1.1.0.0 | Fixed small bug with 'm' magenta color on CMAPPING. Added files versions on Contents.m |
||
1.0.0.0 |