Mathematica里面,图片主要分为两种:Image和Graphics。怎么产生Graphics呢?
工具/原料
电脑
Mathematica
方法/步骤
1、首先,Mathematica中各种以Plot结尾的命令,都可以得到Graphics:
2、以Plot结尾的命令包括但不限于:Names["*Plot"]
3、直接Graphics命令,也可以得到Gra圬桦孰礅phics:Graphics[{Hue[0.5],Disk[]}]
4、如果一个图片img是Image:
5、则可以通过Show,把img转化为Graphics:
6、实际上,Show可以把若干Graphics叠合到一起:Show职邗珩垃[Plot[Sin[Tan[x]],{x,0,2Pi},ImageSize->{500,365}*1缕计瓤账.5,PlotPoints->200],Graphics[{Hue[0.5],Disk[]}],PlotRange->All,AspectRatio->Automatic]
7、Image格式的img,可以执行倍数运算:img*1.5
8、而Graphics格式的fig的倍数运算无意义:fig*1.5