图像缩略图

冷冻剂 /非雷旋彩

版本1.3.0.0(146 kb) John Iversen
Use multiple colormaps per figure! Version 2, now works for many types of objects, not only images.

46.3k下载

Updated2017年1月16日

查看许可证

编者注:This file was selected as MATLAB Central选择一周

Update: 2017: As of Matlab 2014b, this may no longer be needed as MATLAB now allows multiple colormaps per figure--please see my comment. Thanks!
版本2.3,3/2007
(*新事物:9/2010,一个配色栏解决方案)

Problem: There is only one colormap per figure, so all plots share the same colormap. Often one wants different colormaps.

解决方案:此函数对提供了一种简单的方法,可以在同一图中使用不同的典型作品。

例子:
子图(2,1,1)
ImagsC(峰)
colormap热
freezecolors%冻结该情节的colormap

subplot(2,1,2)
colormap hsv % won't change any frozen plots!
冲浪(peaks)
冰期焦虑
ETC...

**** Colorbar解决方法(新9/2010)****
**Note: in recent versions of MATLAB the colorbar is reinitialized
**每当您调用colormap时,就会释放冰期颜色的效果。
**
**建议的解决方案:使用函数CBFreeze,由
**Carlos Adrian Vargas Aguilera, located in the fileexchange
**//www.tianjin-qmedu.com/matlabcentral/fileexchange/24371

%用法
h=colorbar; cbfreeze(h), or simply cbfreeze(colorbar)

%Colorbar workaround example
ImagsC(峰)
冰期焦虑
cbfreeze(配色杆)

由于卡洛斯(Carlos)制定了一个不错的解决方案,因此我选择不复制他的努力。请使用他的精细代码。
****

功能

冷冻颜色冻结图的颜色,使其不受后来的变化。将许多图形对象的颜色(图像,表面,散点组,条图,补丁等)转换为[R G B] TrueColor的任何东西。

非雷素固定器逆转了冰期色的影响。恢复原始的索引颜色数据,从而使菌落和卡克斯再次影响图。

freezecolors_pub.html中的演示和文档,在test/test_main.m中进行测试。

引用为

约翰·艾弗森(John Iversen)(2021)。冷冻剂 /非雷旋彩(//www.tianjin-qmedu.com/matlabcentral/fileexchange/7943-freezecolors-unfreezecolors),matlab中央文件交换。检索

MATLABRelease Compatibility
使用R2010A创建
Compatible with any release
平台兼容性
Windows 苹果系统 Linux

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!