matlab图像三维显示颜色问题
发布网友
发布时间:2023-07-15 07:54
我来回答
共2个回答
热心网友
时间:2023-08-22 21:27
>> help colormap
colormap Color look-up table.
colormap(MAP) sets the current figure's colormap to MAP.
colormap('default') sets the current figure's colormap to
the root's default, whose setting is JET.
MAP = colormap retrieves the current colormap. The values
are in the range from 0 to 1.
colormap(AX,...) uses the figure corresponding to axes AX
instead of the current figure.
colormap(FIG,...) when FIG is a figure , the colormap on FIG is set.
A color map matrix may have any number of rows, but it must have
exactly 3 columns. Each row is interpreted as a color, with the
first element specifying the intensity of red light, the second
green, and the third blue. Color intensity can be specified on the
interval 0.0 to 1.0.
For example, [0 0 0] is black, [1 1 1] is white,
[1 0 0] is pure red, [.5 .5 .5] is gray, and
[127/255 1 212/255] is aquamarine.
Graphics objects that use pseudocolor -- SURFACE and PATCH objects,
which are created by the functions MESH, SURF, and PCOLOR -- map
a color matrix, C, whose values are in the range [Cmin, Cmax],
to an array of indices, k, in the range [1, m].
The values of Cmin and Cmax are either min(min(C)) and max(max(C)),
or are specified by CAXIS. The mapping is linear, with Cmin
mapping to index 1 and Cmax mapping to index m. The indices are
then used with the colormap to determine the color associated
with each matrix element. See CAXIS for details.
Type HELP GRAPH3D to see a number of useful colormaps.
colormap is a function that sets the Colormap property of a figure.
热心网友
时间:2023-08-22 21:27
可以选中图例(就是那一长条渐变的东东),挑选图例风格(好像有grey,hot等等),或者自定义图例,自己看看调一调就ok