matlab 部分text关键字
来源:互联网 发布:西安软件开发公司 编辑:程序博客网 时间:2024/05/21 08:03
一、ColorSpec 定义颜色,本身并非关键字
RGB Value Short Name Long Name
[1 1 0] y yellow
[1 0 1] m magenta
[0 1 1] c cyan
[1 0 0] r red
[0 1 0] g green
[0 0 1] b blue
[1 1 1] w white
[0 0 0] k black
说明:使用RGB格式的话直接使用即可,使用ShortName/LongName还需要加'',另外RGB格式除了整数值以外还可用浮点数,所以颜色更丰富。
eg:set(gcf,'Color',[1,1,0])
…………'BackgroundColor',[.7 .9 .7]…………
…………
二、HorizontalAlignment / VerticalAlignment 文本对齐方式
HorizontalAlignment 的值有
VerticalAlignment的值有 top | cap | {middle} |baseline |
三、BackgroundColor 背景颜色,值参考(一) 需要命令二
四、 Edgecolor 边框颜色,值参考(一)
五、LineStyle 线形 需要命令四
SymbolLine Style
- Solid line (default) 实线
-- Dashed line 虚线
: Dotted line 点线
-. Dash-dot line 虚点线
none No line 没线
六、LineWidth 线宽 大于0标量值,默认为1,不加引号用 需要命令四
七、Margin 边缘宽度 大于0标量值,默认貌似为1,不加引号用 需要命令二
八、Rotation 旋转角度 标量值,默认0,角度制,可以为负
九、Position 定位 默认定位左下角,但若设定了对齐方式则按照对齐方式,如果之前定位过,那么position后就变为position的,[xy (z)],z默认为0
十、string 与 Interpreter
\bf — Bold font
\it — Italic font
\sl — Oblique font (rarelyavailable)
\rm — Normal font\fontname{fontname} —Specifythe name of the font family touse.
\fontsize{fontsize} —Specify the font size inFontUnits.
\color(colorSpec) —Specify color for succeedingcharacters
eg:
figure;axis([-10,10,-10,10]);
text(3*pi/10,sin(3*pi/10),...
text('Interpreter','latex',...
text(-5,5,['\fontsize{16}\itblack {\color{magenta}\rmmagenta'...
'\color[rgb]{0 .5 .5}\bfteal \color{red}\slred} blackagain'])
- matlab 部分text关键字
- MATLAB text的“关键字”
- MATLAB text的“关键字”
- matlab关键字
- 部分关键字
- HDOJ 1062 Text Reverse
- HDOJ 1321 Reverse Text
- 1062 Text Reverse
- sublime text 3
- sublime text 3 破解
- Sublime Text 2 快键健
- java final 关键字
- static 关键字 整理
- matlab plot 画线
- Matlab ML Tools
- 【Matlab】text函数使用方法
- matlab 读写text文档
- 【MATLAB】matlab eig 函数…
- for 循环语句
- matlab 条件断点 的设置和用法
- matlab randn函数 标准正态分布
- matlab 特殊字符的显示
- iOS 高性能定时器解决方案
- matlab 部分text关键字
- 【CQOI2013】新数独 爆搜
- Java多线程
- 双纵坐标绘图-Plotyy
- matlab 对数坐标系绘图函数
- uva 712 S-Tree (S树)模拟
- matlab view 控制图片显示视角
- [DP] Codeforces 403D #236 (Div. 1) D. Beautiful Pairs of Numbers
- matlab meshgrid函数 生成网格矩阵