Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting rcParams for Matplotlib plot not working with PyCall #87

Open
facusapienza21 opened this issue Jul 16, 2024 · 0 comments
Open

Comments

@facusapienza21
Copy link
Member

I currently implemented a version of plot.jl functions that allows you to pass rcParams from matplotlib to set parameters of plots. However, if well this code is correct, the changes in the rcParams file are not reflected. This is a problem involving PyCall.
See for example plot_sphere() in plot.jl

# Set default plot parameters. 
# See https://matplotlib.org/stable/users/explain/customizing.html for customizable optionsz
if !isnothing(matplotlib_rcParams)
    for (key, value) in matplotlib_rcParams
        @warn "Setting Matplotlib parameters with rcParams currently not working. See following GitHub issue: https://github.com/JuliaPy/PyPlot.jl/issues/525"
        mpl_base.rcParams[key] = value
    end
end

Notice that the mpl_base is defined in both SphereUDE.jl and config.jl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant