Home > Objects > @iData > colormap.m



h=colormap(objects, colormaps, ..., options): Produce surfaces from iData 2D objects with different colormaps


function h = colormap(varargin)


 h=colormap(objects, colormaps, ..., options): Produce surfaces from iData 2D objects with different colormaps

 h=colormap(z1,cm1, z2, cm2, ...)
   Produces surfaces with different colormaps.
   iData 2D object z1 is plotted as surface 1, which is coloured with map cm1 (Nx3)

 h=colormap(z1, z2, ...)
   Same as above with a set of default colormaps

 h=colormap(..., options)
   Options specify the type of plot rendering (same as used in iData/plot)
   Any string argument will be interpreted as an 'option' for the 2D iData/plot
                 surf, mesh, contour, contour3, surfc, surfl, contourf
                 plot3, scatter3 (colored points), stem3, pcolor, waterfall
                 flat, interp, faceted (for shading), view2, view3
                 transparent, light, clabel, colorbar, shifted (overlayed 2D)
                 axis tight, axis auto, hide_axes (compact layout)
                 painters (bitmap drawing), zbuffer (vectorial drawing)
                 whole (do not reduce large object size for plotting)

 In addition, the 'log' option can be used to employ a log-scale color set
   which enhances contrast on low signal values in the plot.

 Available colormaps are:
    hsv        - Hue-saturation-value color map.
    hot        - Black-red-yellow-white color map.
    gray       - Linear gray-scale color map.
    bone       - Gray-scale with tinge of blue color map.
    copper     - Linear copper-tone color map.
    pink       - Pastel shades of pink color map.
    white      - All white color map.
    flag       - Alternating red, white, blue, and black color map.
    lines      - Color map with the line colors.
    colorcube  - Enhanced color-cube color map.
    vga        - Windows colormap for 16 colors.
    jet        - Variant of HSV.
    prism      - Prism color map.
    cool       - Shades of cyan and magenta color map.
    autumn     - Shades of red and yellow color map.
    spring     - Shades of magenta and yellow color map.
    winter     - Shades of blue and green color map.
    summer     - Shades of green and yellow color map.

 input: z1,z2,...:   iData objects (single or arrays)
        cm1, cm2...: colormaps (Mx3 matrices, such as jet)
        options:     string specifying the type of rendering for iData/plot.
 output: h:          graphics object handles (cell/array)
 example: a=iData(feval(gauss2d)); colormap(a,jet,a+1,hsv,'log transparent')

 Version: Mar. 22, 2017
 See also iData, iData/plot, iData/surf, iData/caxis


This function calls: This function is called by:
Generated on Wed 22-Mar-2017 09:13:30 by m2html © 2005. iFit (c) E.Farhi/ILL EUPL 1.1