养生 装修 购物 美食 感冒 便秘 营销 加盟 小吃 火锅 管理 创业 搭配 减肥 培训 旅游

【Mathematica】怎么产生Graphics图

时间:2024-10-21 16:07:57

Mathematica里面,图片主要分为两种:Image和Graphics。怎么产生Graphics呢?

工具/原料

电脑

Mathematica

方法/步骤

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

【Mathematica】怎么产生Graphics图

2、以Plot结尾的命令包括但不限于:Names["*Plot"]

【Mathematica】怎么产生Graphics图

3、直接Graphics命令,也可以得到Gra圬桦孰礅phics: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,2Pi},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图

© 一点知识