Colormap Slider (Creator)

版本 1.1.0.0 (30.6 KB) 作者: Haroon
Interactive colormap slider + creator
955.0 次下载
更新时间 2015/4/13

查看许可证

% COLORMAP_SLIDER as the name suggests is an colormap slider that is more
% dynamic, time-efficient way to change the colormap values dynamically
% and directly from MATLAB. Define your own colormaps or alternatively
% very useful for real-time colormap changes to your graphs with load and
% save functionality. (RGB values only)
%
% inspiration from : http://colormap.org/
% This program can be used in mainly two ways
% (1) standalone - create your own colormaps
% (2) with figure - modify in real-time colormaps
%
% HOW TO USE:
% note: run the demo files for examples
% demo_ex1.m, demo_ex2.m, globegui.m
%
% COLORMAP_SLIDER standalone change of colormap
%
% COLORMAP_SLIDER (handle_obj):
% handle_obj - the axis or figure handle to get colormap from
% EXAMPLES : colormap_slider(gcf); colormap_slider(gca)
%
% COLORMAP_SLIDER (handle_obj, OPTIONS)
% current available options
% '-force-partition'
% forces the line paritition to automatically guess the point
% of colormap changes if possible
% '-max-rgb-lines', #{number}
% The max number of RGB moveable lines to begin with.
% Need to follow parameter with a #{number}
% If this option is not included, will automatically place upto 10
% RGB movable lines (+ 2 edges)
% '-set-colormap', #{colormap}
% Change colormap from the original default one
% COLORMAP_SLIDER('-set-colormap',winter(64))
% COLORMAP_SLIDER(gcf,'-set-colormap',summer)
%
%
% History
% 2015/04/13: v1.00, 1st version. note empty space is for further future functionality.
%
% Author: Haroon Arshad 15/03/2015
% any questions please email haroon.arshad@live.co.uk
% Website(s) + blog: haroonarshad.co.uk, haroonarshad.co

引用格式

Haroon (2024). Colormap Slider (Creator) (https://www.mathworks.com/matlabcentral/fileexchange/50491-colormap-slider-creator), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2014b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Colormaps 的更多信息
致谢

参考作品: String Toolkits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

v1.01, fixed issue of lost handles to deleted RGB marker object when in 'remove line'. Corrected issue in demo_ex1.m file

1.0.0.0