Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 520e471

Browse files
committed
rcdefaults working with mplconfig
svn path=/trunk/matplotlib/; revision=3730
1 parent a03b5f6 commit 520e471

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

lib/matplotlib/config/mplconfig.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,9 +516,13 @@ def save_config():
516516
config_file)
517517

518518
def rcdefaults():
519-
global mplConfig
520-
mplConfig = MPLConfig()
521-
rcParams.update(rcParamsDefault)
519+
"""
520+
Restore the default rc params - the ones that were created at
521+
matplotlib load time
522+
"""
523+
for key in rcParamsDefault.keys():
524+
rcParams[key] = rcParamsDefault[key]
525+
522526

523527
##############################################################################
524528
# Auto-generate the mpl-data/matplotlib.conf

0 commit comments

Comments
 (0)