JuliaPy / JuliaPy/PyPlot.jl

use styles in a module

オープン
#462 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Julia
スター
488
フォーク
90
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm imposing a style inside a module, but it doesn't take effect when I call `PyPlot.jl` functions from this module. see [here](https://github.com/SimonEnsemble/Controlz.jl/blob/master/src/Controlz.jl#L5-L9).

```julia
module Controlz

using PyPlot

# hipster plot theme
PyPlot.matplotlib.style.use(joinpath(
replace(pathof(Controlz), "src/Controlz.jl" => "src"), "hipster.mplstyle"))
# ...

function my_plot()
plot([1], [2])
end
```
then the style is not used in `my_plot()`. is there a way to enforce my `.mplstyle` file to be used in these plots? thanks.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。