物探论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 704|回复: 0

[算法] 带阴影颜色

[复制链接]
发表于 2013-11-24 08:50:41 | 显示全部楼层 |阅读模式
2.jpg 1.jpg [aTakes two data sets, Z1 and Z2.  Z1 is imaged with colors given in cmap.  Z2 is shaded on each pixel as a value between shadedlim and 1.  Z1 and
  Z2 must be the same size.  

  caxis limits are needed for both data sets (clim1 and clim2).

  The major colormap is needed (cmap).  If empty, the current colormap is
  used.  

  The last optional argument is whether to use PCOLOR (default, pcol=1) or
  IMAGESC (pcol=0) to render the image.  IMAGESC is faster on most
  machines, but the x and y axes are not scaled properly if x or y
  spacing is variable.  

  To see a demo, run with no args.  Demo requires Udemo.mat, redblue.m
  and shadedcolorbar.m.  Note the demo uses the "redblue" colormap.  I
  find the shading works best with fewer hues than what "jet" provides. ttach]19282[/attach]

shadedpcol.zip

771.58 KB, 下载次数: 0

售价: 12 物探币  [记录]  [购买]

回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-29 10:11 , Processed in 0.069078 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

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