Stats

Popular Posts

Followers

Mathematica圖形刻度設定

養花種魚數月亮賞星星 於 Wednesday, October 21, 2009 7:40 PM 發表


最近看一下goole analytics,發現"mathematica 刻度"這個關鍵字每天都會出現。這邊特別寫一下Mathematica圖形刻度設定的說明。首先畫一個簡單的Sin(x)的圖形

Plot[Sin[x], {x, 0, 2 Pi}, Filling -> Axis]


加入圖片


這時候你可能覺得圖形漂亮歸漂亮,但是三角函數應該用Pi來做座標軸的刻度比較好。
Mathematica刻度的指令是Ticks。一般來說,Mathematica預設是Automatic。

Plot[函數, Ticks->{x軸的刻度,y軸的刻度}]

所以接下來的式子是將Sin[x]的圖形將x軸的刻度間隔設定為Pi/4。y軸怎使用預設樣式。

Plot[Sin[x], {x, 0, 2 Pi}, Filling -> Axis, Ticks -> {Table[i , {i, 0, 2 Pi, Pi/4}], Automatic}]


當然刻度間隔並不一樣要固定,也可以隨你高興!例如

Plot[Sin[x], {x, 0, 2 Pi}, Filling -> Axis, Ticks -> {{0, 1, 2 Pi/3, 2, 5 Pi/6, 3, 5, 2 Pi}, {0, .1, -0.5, -0.7, -1, 1}}]


一切隨你高興!不過人生總是慾望無窮,好還要更好~~這時候你一定會想說:『要是兩軸能有箭頭,那就更完美了。』是的!只有你想不到,沒有做不到的事。

Plot[Sin[x], {x, 0, 2 Pi + 1}, Filling -> Axis, RegionFunction -> Function[{x}, 0 <> {{0, 1, 2 Pi/3, 2, 5 Pi/6, 3, 5, 2 Pi}, {0, 0.1, -0.5, -0.7, -1, 1}}, AxesStyle -> Arrowheads[{0, 0.05}]]


身為一個讀書人,我想上面運算式所用的參數的使用方法,你也應該查一下Help了吧!

mathematica;教學;pdf mathematica 6教學 mathematica基本教學 mathematica mathematica下載 spss教學網站 spss教學講義下載 spss教學pdf spss教學網 spss教學講義下載 spss教學網站 spss教學下載 spss教學講義 spss教學pdf roc curve spss教學 manova spss教學 spss教學手冊 spss 16教學 automator mac 教學 automator 浮水 box cox spss cwtex linux cwtex ptt cwtex texlive cwtex-linux excel matrix excel 分配圖 excel 畫常態分配圖 excel常態分配 excel常態分配圖 excel畫常態分佈圖 excel畫常態分配圖 google latex 註解 graphicspath latex 路徑 import mathematica integral exp x 2 latex latex 文字和圖片重疊 latex 浮水印 透明度 watermark latex 圖例 latex 圖片文字重疊 latex教學 mac automator mac latex 新增 package mac pdf 浮水印 mac 水印 mac合併pdf mathematica mathematica 8 圖 字 mathematica abs mathematica pso mathematica 字型 mathematica 教學 pdf mathematica 講義 mathematica教學 mathematica講義 norminv vba p-value excel scientific workplace lyx spss string substr spss 幾何平均數 spss 遺漏值 spss教學講義下載 丁吉峰 可愛手寫字體 可愛字體 可愛的字體 如何畫常態分配圖 利用mac automator幫pdf加入浮水印 怎麼合併pdf for mac automator 怎麼畫星星 浮水印 cwtex 留言板 常態分配圖 常態分配圖如何畫 敏感性分析 公式 統計學講義 最小生成樹 華康可愛字體 戴忠淵
Tags: , ,

讀者回應 ( 0 意見 )

Post a Comment

Please leave your name and tell me what you thought about this site. Comments, suggestions and views are welcomed.

如果這篇文章對你有幫助,那請留個訊息給我~