Skip to content

Setting rcParams fails silently #417

@hsgg

Description

@hsgg

I am unable to set matplotlib parameters via rcParams, e.g.

julia> using PyPlot

julia> matplotlib[:rcParams]["font.size"] = 15.0
15.0

julia> matplotlib[:rcParams]["font.size"]
10.0

This is in contrast to the equivalent code in python, which does allow me to change the font size in this manner. I find this difference in behavior surprising.

Judging by other bug reports (e.g. #114, #309), I believe this to be a regression introduced within the last year or so. (Explicitly converting rcParams to a PyDict() as in those reports doesn't make it work, either.)

On the other hand, using rc works, e.g.

julia> matplotlib[:rc]("font", size=15.0)

julia> matplotlib[:rcParams]["font.size"]
15.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions