找回密码
 注册
Simdroid-非首页
查看: 89|回复: 2

[6.图形动画] 请教 如何在图标里面加入文字

[复制链接]
发表于 2011-5-19 17:56:45 | 显示全部楼层 |阅读模式 来自 法国
请问怎么才能在图表中加入文字呢?比如说下面的图线,
plot(x^2, x = 0 .. 10, axes = boxed)

想加一个单词linear。想用tesxplot,但试了好像不行。
plots[textplot]([2,40, typeset("linear "), x = 0 .. 10, font = [TIMES, BOLD, 20]])
发表于 2011-5-19 18:15:20 | 显示全部楼层 来自 河南焦作
Simdroid开发平台
试试display:
> with(plots);
> p1 := plot(x^2, x = 0 .. 10, axes = box);
> p2 := textplot([2, 40, typeset("linear"), x = 0 .. 10, font = [TIMES, BOLD, 20]]);
> display(p1, p2);

评分

1

查看全部评分

回复 不支持

使用道具 举报

 楼主| 发表于 2011-5-19 19:43:09 | 显示全部楼层 来自 法国
楼上的方法可以的  多谢啦
回复 不支持

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-27 02:51 , Processed in 0.028141 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表