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

[6.图形动画] 2d图形的数据导出问题

[复制链接]
发表于 2009-12-18 16:02:07 | 显示全部楼层 |阅读模式 来自 清华大学
由于在maple里画的图不是很好看,我想把图的数据导出来在origin里画,哪位大侠帮下忙,在maple里怎么把图形的数据导出来,最好导成excel的形式,谢谢了
发表于 2009-12-18 17:11:11 | 显示全部楼层 来自 黑龙江哈尔滨
Simdroid开发平台
由于在maple里画的图不是很好看,我想把图的数据导出来在origin里画,哪位大侠帮下忙,在maple里怎么把图形的数据导出来,最好导成excel的形式,谢谢了
capricorn 发表于 2009-12-18 16:02


我记得我是仿照wikipedia的一个程序(即:下面的3D图形的导出程序)写的,虽然简陋,但能用。


  1. restart;
  2. PlotCommand := plot(sin(x),x=0..2, numpoints =60);
  3.   
  4.    #save(PlotCommand,"c:\\PlotCommand.txt");

  5. Points :=op(1,op(indets(PlotCommand,function))[2]);
  6. whattype(Points);
  7. NumPoints :=nops(Points);
  8. PointsOutTemp:=Matrix(NumPoints,2,[]);
  9. whattype(PointsOutTemp);
  10. PointsOut :=Matrix(NumPoints,2,Points);
  11. whattype(PointsOut);
  12. ExportMatrix("c:\\PointsOut.xls",PointsOut);

  13. #-------------------------------------------------- 3D
  14. > P := plot3d(sin(x*y),x=-2..2,y=-2..2):
  15. > Q:= < op(indets(P,Array))>;
  16.                          [ 25 x 25 Matrix       ]
  17.                     Q := [ Data Type: float[8]  ]
  18.                          [ Storage: rectangular ]
  19.                          [ Order: C_order       ]
  20. You can then export this data to a file and insert in a spreadsheet.
  21. 1. Export to a tab delimited file:
  22. Right-click on the output and choose:
  23. Export As -> Tab Deliminated
  24. save it to a tab-delimited format file with extension .xls. Click on the file (if the extension is associated) or import as tab delimited. Your data will then be in the spreadsheet.
  25. 2. The same result by a command:
  26. > ExportMatrix("plot.xls",Q);
  27. 3. Only in Standard GUI (Maple 11 or later), export to .xls format:
  28. > with(ExcelTools);                        
  29. > Export(Q, "plot.xls");
复制代码
回复 不支持

使用道具 举报

发表于 2009-12-19 09:11:47 | 显示全部楼层 来自 湖北武汉
本帖最后由 maplelab 于 2009-12-19 12:09 编辑

1# capricorn

maple里画的图不是很好看?

你大概不会用选项.

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

 楼主| 发表于 2009-12-21 13:38:59 | 显示全部楼层 来自 北京
楼上的能否详细说一下选项怎么用?maple画出的图的确插在论文里不好看!
回复 不支持

使用道具 举报

发表于 2009-12-21 15:05:56 | 显示全部楼层 来自 湖北武汉
线粗细,点大小,颜色,光源,取样点数目,网格数,样式,观察区域,视角,导出格式选择等等,对图像的最终质量都有影响.
我自己一般做tex插图,用*.eps.
如果word,常用*.gif,或者*.bmp位图.
当然前提还是先通过选项把图在Maple里画的尽量好些.
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-27 11:18 , Processed in 0.035431 second(s), 14 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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