Takuya Miyashita
This site
Web
Start:
*Julia - PyPlot [#t0c961d1]
**使い方の基本 [#p57bf55b]
Python 上では
#codeprettify(lang-python){{
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
}}
としているのを
#codeprettify(lang-julia){{
using PyPlot
fig = figure()
ax = fig[:add_subplot](111)
}}
とする.メソッドを[: ]の中に書く.~
matplotlib を呼び出しているので,それ以外の文法は matplot...
~
~
追記:PyPlot が更新され,今では hoge[:huga] 形式が非推奨...
#codeprettify(lang-julia){{
ax = fig.add_subplot(111)
}}
と Python っぽく使えるようになった.
End:
*Julia - PyPlot [#t0c961d1]
**使い方の基本 [#p57bf55b]
Python 上では
#codeprettify(lang-python){{
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(111)
}}
としているのを
#codeprettify(lang-julia){{
using PyPlot
fig = figure()
ax = fig[:add_subplot](111)
}}
とする.メソッドを[: ]の中に書く.~
matplotlib を呼び出しているので,それ以外の文法は matplot...
~
~
追記:PyPlot が更新され,今では hoge[:huga] 形式が非推奨...
#codeprettify(lang-julia){{
ax = fig.add_subplot(111)
}}
と Python っぽく使えるようになった.
Page:
Edit with a page name which already exists