Skip to content

Commit cc45ced

Browse files
goretkinstevengj
authored andcommitted
Clarify how to use rcParams (#445)
* Clarify how to use rcParams This is in issue #417 * tweak
1 parent 4fdd257 commit cc45ced

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,15 @@ Matplotlib
296296
[savefig](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.savefig)
297297
command, e.g. `savefig("plot.svg")`.
298298

299+
## Modifying matplotlib.rcParams
300+
You can mutate the `rcParams` dictionary that Matplotlib uses for global parameters following this example:
301+
```jl
302+
rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
303+
rcParams["font.size"] = 15
304+
```
305+
(If you instead used `PyPlot.matplotlib.rcParams`, PyCall would make a copy of the dictionary
306+
so that the Python `rcParams` wouldn't be modified.)
307+
299308
## Author
300309

301310
This module was written by [Steven G. Johnson](http://math.mit.edu/~stevenj/).

0 commit comments

Comments
 (0)