LoginSignup
2
2

More than 5 years have passed since last update.

Juliaでプロット

Last updated at Posted at 2018-04-23

グラフのeps出力

WindowsのJupyter Notebookで、日本語のグラフをepsで出力しようとしたら、思いの外手こずった。
Plotsというパッケージは、プロットのフロントエンドとして、様々なパッケージを動かせるが、日本語のグラフをepsで出力しようとするとどのバックエンドもうまくいかなかった。
様々なパッケージを試した末に、Gastonというgnuplotを呼び出すパッケージに落ち着いた。 gnuplot5.0以降は日本語とも親和性が高いようだ。 PlotlyJSも良さそうであったが、Jupyter Notebookで連続してeps画像を出力しようとすると、2枚目で無限ループ?で停止した。

まとめ

StatPlots, Gadfly, PyPlot, Plotly→日本語がうまくいかない。あるいは、eps出力できない。
PlotlyJS→日本語出力できるが、eps出力しようとすると、停止する。IJuliaでは、うまく動いた。
Gaston→高速、eps、日本語対応

参考文献
ソース:https://github.com/kim-tom/Julia_Gaston

Computational and Numerical Methods in Julia -Plotting in Julia I-
http://computationalnumericaljulia.com/plotting-in-julia-i/

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2