当前位置:网站首页>介绍几个适用于matlab的colormap
介绍几个适用于matlab的colormap
2022-08-07 10:20:00 【zdlwhereyougo】
matlab自带的colormap不好看,在matlab的App市场找到了一些插件,挺不错的,介绍给大家。
插件名称:
1:MatPlotLib Perceptually Uniform Colormaps
2:cmocean perceptually-uniform colormaps
3:CubeHelix Colormap Generator: Beautiful and Versatile!
获取方式:
准备matlab账号,密码
matlab->app->安装app->搜索工具->获取或者安装即可
1:MatPlotLib Perceptually Uniform Colormaps
演示简单调用
函数:cividis,inferno,magma,plasma,tab10,tab20,tab20b,tab20c,twilight,twilight_shifted,virids
2:cmocean perceptually-uniform colormaps
函数:cmocean
3:CubeHelix Colormap Generator: Beautiful and Versatile!
函数:cubehelix,cubehelix_view,preset_colormap
cubehelix_view这个函数还挺好玩的,可以自己设置,提前预览,互动性很强
preset_colormap有点复杂,没搞明白
clc;clear ;close all;
x=1:10;
x=x';
t=1:0.1:19;
y=x.*sin(t);
figure
hp=plot(t,y);
% clr=jet(length(hp));%可以看之前的视频,有介绍多条曲线调节颜色的
% clr=tab10(length(hp));%length(hp)是由曲线条数决定的
% clr=tab20(length(hp));
% clr=tab20b(length(hp));
% clr=tab20c(length(hp));
% clr=cubehelix(length(hp))
% [map,lo,hi,prm] = cubehelix(N,start,rots,satn,gamma,irange,domain)
[clr,ho,li]=cubehelix_view(length(hp));%这个最好玩,玩起来停不下来,哈哈
% %可以直接保存clr用于以后的绘图,也可以记住界面上的参数,使用下面的命令调用
% % [map,lo,hi,prm] = cubehelix(N,start,rots,satn,gamma,irange,domain)
for i=1:length(hp)
hp(i).Color=clr(i,:);
hp(i).LineWidth=2;
end
legend边栏推荐
- For high-performance, ultra-large-scale model training, this combination "debuts"
- UGUI Series - Dropdown Control Research (Unity3D)
- unity3d粒子碰撞检测,判断例子碰撞到物体
- xlwings module (data is saved as xlsx file)
- Possible errors when using scanf()
- PG核心技术篇--MVCC
- The problem that the uniapp local plugin list is empty
- Some summary about common build tools
- GPT-3组合DALL·E,60秒内搞定游戏设定和原型动画!网友看后:这游戏想玩
- 想要保护程序?加密狗太麻烦,试试这个吧(Unity3D)
猜你喜欢

Solve the problem that the file content of typora is copied to csdn and the picture cannot be displayed

ES6之原型

中国手机持续创新,全面屏再进一步,引领手机创新

YOLOV5 Study Notes (6) - Optimizing Network Architecture

VPC5021电流模式 PWM 控制器 3uA 超低启动电流

Custom Annotations and Reflections

thinkphp 6.x 任意文件写入漏洞

Mysql中获取所有表名以及表名带时间字符串使用BetweenAnd筛选区间范围

The third community meeting of MASA Stack

Redis是单线程的,但Redis为什么这么快?
随机推荐
xlwings module (data is saved as xlsx file)
process scheduling
产品“白送”+溢价入股,赛诺菲打响抄底中国生物科技资产第一枪
项目优化之优化技巧进阶(Unity3D)
如何仿造websocket请求?
你知道12306 是如何支撑百万 QPS 的?
UGUI系列-原理分析(Unity3D)
开会时被领导骂了10多分钟,骂得我快哭了,说话声音都在发抖
formData
The snowflakes algorithm of a database table
UGUI系列-屏幕自适应多分配率适配(Untiy3D)
China's mobile phones continue to innovate, and the full screen goes further, leading mobile phone innovation
npm 发布问题
PG核心技术篇--MVCC
formData
What skills does a technical director need?priority?
NProgress插件(进度条)
Want to save programs?The dongle is too much trouble, try this (Unity3D)
360企业安全云亮相2022全球数字经济大会 夯实中小微企业数字化底座
Get all table names and table names with time strings in Mysql Use BetweenAnd to filter the interval range