履歴: プログラミング/julia/グラフの書き方
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 15 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2026/8/25 10:02:05 | プログラミング/julia/グラフの書き方 最新版 | 16,566 | +1 | -31 | 表示 | 差分 | — |
| 2026/8/25 10:02:05 | プログラミング/julia/グラフの書き方 | 18,217 | +5 | -1 | 表示 | 差分 | 選択 |
| 2022/2/18 21:21:27 | プログラミング/julia/グラフの書き方 | 18,068 | +31 | -0 | 表示 | 表示中 | 選択 |
| 2018/5/11 2:15:44 | プログラミング/julia/グラフの書き方 | 16,422 | +1 | -1 | 表示 | 差分 | 選択 |
| 2018/5/11 2:15:44 | プログラミング/julia/グラフの書き方 | 16,413 | +19 | -11 | 表示 | 差分 | 選択 |
| 2018/4/13 11:11:37 | プログラミング/julia/グラフの書き方 | 16,289 | +9 | -0 | 表示 | 差分 | 選択 |
| 2018/4/11 13:57:14 | プログラミング/julia/グラフの書き方 | 16,061 | +20 | -1 | 表示 | 差分 | 選択 |
| 2018/4/6 8:43:24 | プログラミング/julia/グラフの書き方 | 15,565 | +82 | -15 | 表示 | 差分 | 基準 |
| 2018/4/6 8:12:48 | プログラミング/julia/グラフの書き方 | 13,784 | +40 | -18 | 表示 | 差分 | 選択 |
| 2018/4/5 18:38:44 | プログラミング/julia/グラフの書き方 | 13,188 | +39 | -24 | 表示 | 差分 | 選択 |
| 2018/4/5 17:40:09 | プログラミング/julia/グラフの書き方 | 13,433 | +259 | -29 | 表示 | 差分 | 選択 |
| 2018/4/5 12:09:20 | プログラミング/julia/グラフの書き方 | 5,346 | +92 | -0 | 表示 | 差分 | 選択 |
| 2018/4/4 8:59:33 | プログラミング/julia/グラフの書き方 | 3,560 | +83 | -0 | 表示 | 差分 | 選択 |
| 2018/4/3 16:11:57 | プログラミング/julia/グラフの書き方 | 656 | +15 | -0 | 表示 | 差分 | 選択 |
| 2018/4/3 12:17:57 | プログラミング/julia/グラフの書き方 | 321 | — | — | 表示 | — | 選択 |
基準: プログラミング/julia/グラフの書き方 (2018/4/6 8:43:24) → 比較: プログラミング/julia/グラフの書き方 (2022/2/18 21:21:27)
@@ -87,11 +87,12 @@
それぞれの表示はこんな感じ。~
- PyPlot は一番問題が少ないが、出力は png なので拡大すると粗い
- GD は Surface プロットができない
-- Plotly はグラフを複数並べると円グラフや3Dグラフの表示がおかしくなる
+- Plotly は layout でグラフを複数並べると円グラフや3Dグラフの表示がおかしくなる
-- 単体なら問題ない
- PGFPlots は Surface, Pie, WireFrame, HeatMap プロットができない
-共通コードはこちら:
+共通コードはこちら:~
+ 各種グラフを書くためのコードサンプルになるはず。
LANG:julia
using Plots
@@ -140,7 +141,8 @@
&ref(test-julia-plotly2.png,,50%);
-ここでおかしかったものも、単体で表示する分にはまともに表示される。
+複数グラフを layout で並べて表示するのが不得意なだけで、
+ここでおかしかったものも単体で表示する分にはまともに表示される。
対数スケールの軸がキレイに表示されているのは Plotly だけだった。
*** PGFPlots [#ad69e624]
@@ -373,15 +375,6 @@
と言われ、PyCall を build する必要があった。
-@gif を使ってアニメーションをしようとしたところ、
-
- could not spawn `ffmpeg -v 0 -i /tmp/tmpsIoz72/%06d.png -vf palettegen=stats_mode=diff -y /tmp/tmpsIoz72/palette.bmp`: no such file or directory (ENOENT)
-
-と言われた
-
- LANG:console
- $ sudo apt-get install ffmpeg
-
*** 正しい手順 [#e720f643]
LANG:console
@@ -510,6 +503,48 @@
こうかな。
+* Plots.plot に関数を与えるだけでグラフを書ける [#a6b4f0f6]
+
+あまり用例を見ないのだけれど、直接関数を与えてグラフが書ける。とても便利。
+
+&ref(plot-function1.png);
+
+&ref(plot-function2.png);
+
+ただ今のところ、グラフがカクカクになってしまったときにサンプリング点数を増やす方法が分からなくて困ってる。
+* @manipulate でインタラクティブにパラメータを変えられる [#a67f1d22]
+
+Interact モジュールと widget/extension を使う。
+
+実際には、あらかじめパラメータを変えたグラフをすべて用意しておき、
+入力値に従って切り替えて表示しているっぽい。
+
+&ref(プログラミング/julia/インストール/jupyter-interact.gif,border,50%);
+
+* @gif で手軽に GIF アニメが作れる [#x1fb558d]
+
+@gif を使ってアニメーションをしようとしたところ、
+
+ could not spawn `ffmpeg -v 0 -i /tmp/tmpsIoz72/%06d.png -vf palettegen=stats_mode=diff -y /tmp/tmpsIoz72/palette.bmp`: no such file or directory (ENOENT)
+
+と言われた
+
+ LANG:console
+ $ sudo apt-get install ffmpeg
+
+
+* @recipe について [#a636756b]
+
+勉強せねば。
+
+https://github.com/JuliaPlots/PlotDocs.jl/blob/master/docs/src/recipes.md
+
+* 関数のグラフをキレイに描くためのモジュールを作った [#pbbb38b8]
+
+http://nbviewer.jupyter.org/gist/osamutake/9fa7918013c1af17c50666bafb3469d0
+
+&ref(funcplot.png,,50%);
+
* このあたりを見る? [#v8a20489]
Plots/GR: グラフ package のおすすめ~
@@ -530,7 +565,39 @@
PlotThemes~
https://github.com/JuliaPlots/PlotThemes.jl
-
+PGFPlots.ipynb~
+http://nbviewer.jupyter.org/github/sisl/PGFPlots.jl/blob/master/doc/PGFPlots.ipynb
* コメント・質問 [#xbcaa13f]
#article_kcaptcha
+**Research on tutorials you can use for your site [#i6449b0a]
+>[[Vinay Tomar]] (&timetag(2022-02-18T12:21:27+09:00, 2022-02-18 (金) 21:21:27);)~
+~
+Hey,~
+~
+I’ve been an avid reader of https://dora.bk.tsukuba.ac.jp/~takeuchi/?%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%2Fjulia%2F%E3%82%B0%E3%83%A9%E3%83%95%E3%81%AE%E6%9B%B8%E3%81%8D%E6%96%B9 for quite some time now – and I really love how detailed and well-researched your guides are.~
+~
+I can only imagine the time you spent working on those.~
+Anyway, I noticed that you’ve been writing a lot about python lately. I have a resource on learning Python that talks about exactly that.~
+~
+Guru99 has a huge list of software learning library across topics like Linux, Java ,PHP ,SQL ,Ethical Hacking, python any more with new courses added every month.~
+~
+In this Python for beginners tutorial, you will learn Python installation, variables, Data structure, loops, strings, functions, file handling, Python SciPy, Python JSON, Python with MySQL, matrix, Python List, Python Regex, PyTest, PyQt, multithreading, Python interview questions, and many more interesting Python concepts.~
+~
+You can see the full Python tutorial here: https://www.guru99.com/python-tutorials.html ~
+~
+I think mentioning it would bring some extra value for your readers and give them a wider view of Python.~
+~
+As a thankyou, I would be glad to share your page with our 31k Facebook/Twitter/Linkedin Followers.~
+Or~
+I am happy to do Cross-Promotion.~
+~
+Let me know your thoughts. Thanks.~
+Regards,~
+Vinay~
+PS: I am real a person... here is a number to contact me +1 302 308 5151~
+
+//
+
+#comment_kcaptcha
+