JuliaPy / JuliaPy/PyPlot.jl

use styles in a module

Open
#462 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
488
Forks
90
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.