[转载]matlab画图之text用法
标签:
转载 |
分类: matlab研究 |
原文地址:matlab画图之text用法作者:5Geo
- text(x,y,'string')
在2D图形中指定的位置(x,y)上显示字符串string - text(x,y,z,'string') 在3D图形中指定的位置(x,y,z)上显示字符串string
- text(x,y,z,'string','PropertyName',PropertyValue....)
- text('PropertyName',PropertyValue....)
- h = text(...)
命令:
Fig:
常用的颜色表示:
RGB
[1 1 0]
[1 0 1]
[0 1 1]
[1 0 0]
[0 1 0]
[0 0 1]
[1 1 1]
[0 0 0]
whitebg([0 1 0]); whitebg('g'); whitebg('green');
note:如果使用上面的命令时,画布背景颜色可能你就不知道怎么调回来,使用 colordef white这个就可以恢复画布的默认的背景颜色了,或者妮使用whitebg('white')也能恢复。

加载中…