"sage/ggplot_in_sage" を sage -ipython notebook で実行する

目次へ

竹本氏のブログに"sage/ggplot_in_sage"がある。 sage で ggplot を実行するためには pandas と ggplot をインストールする必要がある。

pandas のバージョンが最新版 0.16.2 と ggplot 0.6.5 の組み合わせでは geom_histogram() がエラーを発生させる。 pandas 0.15.2 をインストールする必要がある。

$ sage -sh
    (sage-sh) $ easy_install "pandas==0.15.2"
    (sage-sh) $ easy_install ggplot
    (sage-sh) $ exit
$

実行例

目次へ