24小时热门版块排行榜    

查看: 2286  |  回复: 8
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

匿名

用户注销 (著名写手)

本帖仅楼主可见
已阅   同方向广播   申请数学EPI   回复此楼   编辑   查看我的主页

wurongjun

专家顾问 (职业作家)

引用回帖:
8楼: Originally posted by 呆pipi at 2014-05-05 11:55:34
你好,我想请问下这个方法如何修改文字的颜色和字体呢!因为text默认黑色...

例如:
>> plot([0 1 2 3 4],[3 4 4 1 2],'-ok')
>> hold on
>> text(1,2,'L','Color','r','fontsize',18,'fontname','Times New Roman','fontangle','italic');
所得图片如下!
matlab7如何在图中添加文字
tupian.jpg

善恶到头终有报,人间正道是沧桑.
9楼2014-05-05 12:45:40
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 9 个回答

wurongjun

专家顾问 (职业作家)

【答案】应助回帖

感谢参与,应助指数 +1
TEXT   Text annotation.
    TEXT(X,Y,'string') adds the text in the quotes to location (X,Y)
    on the current axes, where (X,Y) is in units from the current
    plot. If X and Y are vectors, TEXT writes the text at all locations
    given. If 'string' is an array the same number of rows as the
    length of X and Y, TEXT marks each point with the corresponding row
    of the 'string' array.

    TEXT(X,Y,Z,'string') adds text in 3-D coordinates.

    TEXT returns a column vector of handles to TEXT objects, one
    handle per text object. TEXT objects are children of AXES objects.

    The X,Y pair (X,Y,Z triple for 3-D) can be followed by
    parameter/value pairs to specify additional properties of the text.
    The X,Y pair (X,Y,Z triple for 3-D) can be omitted entirely, and
    all properties specified using parameter/value pairs.

    Execute GET(H), where H is a text handle, to see a list of text
    object properties and their current values. Execute SET(H) to see a
    list of text object properties and legal property values.
善恶到头终有报,人间正道是沧桑.
2楼2013-08-23 16:18:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

图强定位

木虫 (正式写手)

【答案】应助回帖

★ ★ ★ ★ ★
感谢参与,应助指数 +1
yxh821011: 金币+5, ★★★★★最佳答案 2013-08-29 18:30:57
text(X,Y,'string')
X,Y,是添加文字的横、纵坐标点,'string'是你要加入的文字,用单引号括起来
经年累月的学习希望能有所获得
3楼2013-08-23 17:00:22
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

匿名

用户注销 (著名写手)

本帖仅楼主可见
4楼2013-08-24 11:05:49
已阅   申请数学EPI   回复此楼   编辑   查看我的主页
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[基金申请] 国自然评审意见 +7 wangmingqi 2026-08-28 8/400 2026-08-28 18:42 by zhuzg0628
[基金申请] 投票:  有多少人是今天查系统知道结果的? +16 爱看书的可乐 2026-08-26 18/900 2026-08-28 17:09 by winsaint
[基金申请] 基金不中,共勉 +11 eulota 2026-08-26 11/550 2026-08-28 14:22 by 火星超人xi
[基金申请] 麻烦专家们看看评委们的意见(F口面上) +4 gdd2018 2026-08-28 9/450 2026-08-28 14:22 by jklily
[基金申请] 基金系统什么内容也没有 30+4 winsaint 2026-08-27 9/450 2026-08-28 11:06 by maolC
[基金申请] 申请删除本帖 +6 lyz123lyz 2026-08-27 7/350 2026-08-27 17:31 by 宁静致远sy
[基金申请] 基金未中,这种答复是模板吗? +5 zhaosm1982 2026-08-27 6/300 2026-08-27 16:00 by lfy8008
[基金申请] 看板上这么多中的,有点像50人群里49个人都是骗子的那种感觉…… +5 a089 2026-08-26 6/300 2026-08-27 14:05 by jonewore
[基金申请] 我不理解! +15 Edward_pc 2026-08-26 23/1150 2026-08-26 20:34 by zzuzxg
[基金申请] 范进中举一文的中心思想 +9 炎黄贵胄 2026-08-22 10/500 2026-08-26 15:40 by semaglutide
[基金申请] 出来了 +9 trojank 2026-08-26 9/450 2026-08-26 14:25 by 宝贝虫子
[基金申请] 为什么国自然不能直接公布 +4 bjdxyxy 2026-08-26 4/200 2026-08-26 13:12 by qingmu1201
[基金申请] 国际合作可查了,中了面上 (EPI+1)(金币+50) +18 Ldrop2023 2026-08-26 18/900 2026-08-26 11:15 by cmrandy
[基金申请] 系统进不去 +4 yanglien 2026-08-26 5/250 2026-08-26 11:10 by wenfengw83
[基金申请] 今天务委会开完了,明天出结果吗 +19 angus9576 2026-08-25 23/1150 2026-08-26 10:03 by zp519
[基金申请] 牛来!米来!面来! +8 beefly 2026-08-26 8/400 2026-08-26 08:37 by xuzhipiao
[基金申请] 在坚冰还盖着北海的时候,我看到了怒放的梅花。 (金币+10) +6 ziyangfang 2026-08-25 9/450 2026-08-25 20:26 by huagongfeihu
[基金申请] 明天应该可查了!? +6 chengyan1220 2026-08-23 6/300 2026-08-25 19:45 by zfd97
[基金申请] 某些机构,以效率低为荣,以效率低作为存在感 +9 yuleib84 2026-08-25 10/500 2026-08-25 17:14 by alexon
[基金申请] 没有任何消息-是不是就凉了 +9 图啦图啦 2026-08-24 10/500 2026-08-25 11:59 by 南海小哥
信息提示
请填处理意见