JuliaPy / JuliaPy/PyPlot.jl

use styles in a module

Đang mở
#462 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Julia
Star
488
Fork
90
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.