use styles in a module
Aperta
- Lingua principale
- Julia
- Stelle
- 488
- Fork
- 90
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.