Skip to Main Content
Mathematica 錦囊妙計
book

Mathematica 錦囊妙計

by Sal Mangano
April 2014
Beginner to intermediate content levelBeginner to intermediate
830 pages
15h 21m
Chinese
GoTop Information, Inc.
Content preview from Mathematica 錦囊妙計
262
|
第六章
263
延伸資訊
當你需要製作客製化的圖例,可以使用
Legend
ShowLegend
指令。
關於圖例的使用,請參考
PlotLegends`
套件的官方教學文件:
http://bit.ly/TYvfV
6.8 2D 幾何圖形繪製
問題點
你需要繪製以基礎幾何圖案組合而成的圖形,例如直線、圓形、方形等。
解決方案
Mathematica 具備許多 2D 繪圖基本元件:
Text
Polygon
Rectangle
Circle
Disk
Line
Point
Arrow
Raster
Point
,你可以使用這些元件任意組合繪出 2D 圖形。
下例以雪人雪景介紹如何使用繪圖基本元件,以
ngon
製作多邊形。
ch06.indd 262 2014/4/2 上午 11:16:45
6.8 2D 幾何圖形繪製
|
263
建立長方形
以隨機產生的透明點作為雪花
以給定半徑繪出雪人底部
以黃金比例繪出雪人身體與頭部
雪人的兩隻手臂分別為 -60 度與 60 度角
-264]
ch06.indd 263 2014/4/7 下午 12:24:56
264
|
第六章
d
將眼睛置於頭部的 -45 度與 45 度處
將嘴巴置於頭部下方的半徑一半處
以半圓形做為嘴巴
Disk 元件做為眼睛
底部
身體
頭部
以一銳角做為鼻子,其比例是經過試誤法試出來的 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ubuntu for Non-Geeks, 4th Edition

Ubuntu for Non-Geeks, 4th Edition

Rickford Grant, Phil Bull

Publisher Resources

ISBN: 9789863470106