给Matlab的图片加背景色
来源:互联网 发布:卖牛仔裤的淘宝店铺 编辑:程序博客网 时间:2024/09/21 08:48
转自:http://earvinlin.spaces.live.com/blog/cns!5fa635e2ba4f9bb6!514.entry
这个问题曾经困扰了我很久,使我这个土人一度以为Matlab干不了这么个事情(后来发现MetaPost, Asymptote等可以,觉得非常之先进-_-),今天终于偶然在Help里发现,拿出来共享(其实知道了真是太太太简单了,但Google就是搜不到-_-),以下是Help中的原文
******************** 我开始引用Matlab的Help ********************
The following example sets the figure background color to blue, the axes background color to yellow, and then sets InvertHardCopy to off so that these colors will appear in your printed or exported figure.
set(gcf, 'color', 'blue');
set(gca, 'color', 'yellow');
set(gcf, 'InvertHardCopy', 'off');
******************** 我结束引用Matlab的Help ********************
另外,输出大量图片时如果一个一个手工Export是要死人的。比较方便的是用print命令,
比如要输出成eps文件可以
print -eps myfigure
就生成myfigure.eps了,如果要生成彩色的话就-epsc,具体参见Matlab的Help。
-----------------------
学艺不精
- 给Matlab的图片加背景色
- 给button等按钮和控件加背景色或者图片,dialog如何增加背景色和图片背景
- 给button等按钮和控件加背景色或者图片,dialog如何增加背景色和图片背景
- 设置图片的背景色
- LaTeX:加背景色
- java设置图片的背景色
- UINavigationBar的背景色和图片
- AspJpeg 生成图片背景色的问题
- 改变图片背景色
- 给 iframe 设置背景色
- 生成随机图片的方法----图片背景色的设置
- 鼠标移动改变背景色 鼠标点击后给据设定的值添加图片到指定的列
- ps 给渐变的背景色换一个颜色
- JS背景色图片透明
- PhtoShop改变图片背景色
- Html背景色图片问题
- WPF图片背景色过滤
- 用图片平铺背景色
- LinqTOXML DescendantNodes、DescendantNodesAndSelf和Descendants、DescendantsAndSelf方法
- 遇到的问题
- 开源不应作为推荐的理由
- 关于Js表单验证
- ExtJs学习笔记(20)-利用ExtJs的Ajax与服务端利用WCF交互
- 给Matlab的图片加背景色
- 如何创建一个更好的规范
- 我的博客开张啦!
- js--表格操纵之 鼠标经过整行变色
- SQL Server 2005 不允许远程连接解决方法
- wxWidget类型转换
- 使用ClickOne发布Windows应用程序
- 数据结构与算法案例集-001-数据结构基础
- 应用DIV+CSS编码时容易犯的一些错误