Closed hsgg closed 5 years ago
From memory, I've experienced the same issue.
That's because matplotlib[:rcParams]
currently makes a copy of the dictionary (this is the default in PyCall).
You want
rcParams = PyDict(matplotlib["rcParams"])
rcParams["font.size"] = 15
I am unable to set matplotlib parameters via
rcParams
, e.g.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 aPyDict()
as in those reports doesn't make it work, either.)On the other hand, using
rc
works, e.g.