matlab画图colormap
时间: 2023-08-27 21:16:52 浏览: 139
在MATLAB中,colormap是用于指定图形的颜色映射的属性之一。colormap可以用来设置整个figure或者axes的颜色映射。可以使用内置的colormap函数,如colormap('parula')、colormap('cool')来设置颜色映射。还可以通过生成RGB矩阵来自定义colormap,如c = parula(200)生成一个200×3的RGB矩阵。通过get(gcf,'colormap')和get(gca,'colormap')可以获取当前figure和axes的colormap矩阵,通过set(gcf,'colormap',parula(200))和set(gca,'colormap',cool(200))可以设置当前figure和axes的colormap矩阵。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [MATLAB 绘制颜色图的 几个函数 colormap caxis colorbar shading+pcolor用法记录](https://blog.csdn.net/weixin_49370241/article/details/126343815)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [【MATLAB】进阶绘图 ( imagesc 缩放颜色显示图像 | imagesc 函数 | Colormaps 颜色图 )](https://blog.csdn.net/han1202012/article/details/115942012)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文