Mathematica 绘制图像实例

{goal,{home},lines}=Import["/home/dabao/robot/data.mat"];

name=Flatten[Import["/home/dabao/robot/name"]];

 map=Line[Partition[#,2]&/@lines];

end=Table[

   {Blend[{Red,Blue},i/10],

    Disk[goal[[i]],400],

    Green,

   Text[Style[i-1,FontSize->Scaled[0.03]],goal[[i]]+{0,0}],

    Blue,

   Text[Style[name[[i]],FontSize->Scaled[0.025]],goal[[i]]+{0,-800}]

    },{i,10}];

 Graphics[{

  map,

  Red,Disk[home,500],

 Blue,Text[Style["h",FontSize->Scaled[0.03]],home],

  end}]

数据下载:数据

posted on 2010-12-14 00:34  大宝pku  阅读(739)  评论(0编辑  收藏  举报

导航