【Mathematica】怎么产生Graphics图?

2025-10-27 09:48:09

1、首先,Mathematica中各种以Plot结尾的命令,都可以得到Graphics:

【Mathematica】怎么产生Graphics图?

2、以Plot结尾的命令包括但不限于:

Names["*Plot"]

【Mathematica】怎么产生Graphics图?

3、直接Graphics命令,也可以得到Graphics:

Graphics[{Hue[0.5], Disk[]}]

【Mathematica】怎么产生Graphics图?

4、如果一个图片img是Image:

【Mathematica】怎么产生Graphics图?

5、则可以通过Show,把img转化为Graphics:

【Mathematica】怎么产生Graphics图?

6、实际上,Show可以把若干Graphics叠合到一起:

Show[Plot[Sin[Tan[x]], {x, 0, 2 Pi}, ImageSize -> {500, 365}*1.5, 

  PlotPoints -> 200],

 Graphics[{Hue[0.5], Disk[]}], PlotRange -> All, 

 AspectRatio -> Automatic]

【Mathematica】怎么产生Graphics图?

7、Image格式的img,可以执行倍数运算:

img*1.5

【Mathematica】怎么产生Graphics图?

8、而Graphics格式的fig的倍数运算无意义:

fig*1.5

【Mathematica】怎么产生Graphics图?

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢