物探论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 657|回复: 0

[算法] blue-white-red colormap to current figure

[复制链接]
发表于 2013-11-24 00:13:12 | 显示全部楼层 |阅读模式
1.jpg
POLARMAP applies a "polarized" blue-white-red colormap to current figure,
        and adjusts the color axis limits to be centered to zero.

        POLARMAP(M) fixes the number of colors to M (default is 64).

        POLARMAP(MAP) applies linear shading to white to the center of colormap
        MAP which can be any of existing colormaps (an Mx3 matrix of RGB).

        POLARMAP(MAP,C) uses exponent C to modify the shading contrast. Default
        is C = 1 for linear shading. Use C = 2 to strengthen the shading, or
        C = 0.5 to attenuate it.

        C=POLARMAP(...) returns an M-by-3 matrix containing the colormap, that
        can be used with COLORMAP function like other colormaps.

        Examples:
                pcolor(peaks), shading interp
                polarmap, colorbar

        then try the following
                polarmap(jet,0.5)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|物探论坛 ( 鄂ICP备12002012号 微信号:iwutan )

GMT+8, 2024-4-29 06:13 , Processed in 0.277304 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表