The Colormap property of figure graphics objects.Ĭoloring Mesh and Surface Plots for more information about colormaps and other coloring methods. colormap is an M-file that sets and gets this property.īrighten, caxis, colormapeditor, colorbar, contrast, hsv2rgb, pcolor, rgb2hsv, rgbplot To view the image, type the following commands:Įach figure has its own Colormap property. The demos directory contains a CAT scan image of a human spine. The following commands display the flujet data using the jet colormap. Try rgbplot(hsv), rgbplot(gray), and rgbplot(hot). The rgbplot function plots colormap values. Selecting Colormap Menu gives access to a number of other colormaps. The hsv colormap starts with red in the center, then passes through yellow, green, cyan, blue, and magenta before returning to red at the outside end of the spiral. This uses the pcolor function to display a 16-by-16 matrix whose elements vary from 0 to 255 in a rectilinear spiral. The images and colormaps demo, imagedemo, provides an introduction to colormaps. Each row in the array contains the red, green, and blue intensities for a specific color. If no figure exists, then the number of rows is equal to the default length of 256.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |