|
From: <ds...@us...> - 2007-08-22 20:11:20
|
Revision: 3730
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3730&view=rev
Author: dsdale
Date: 2007-08-22 13:11:18 -0700 (Wed, 22 Aug 2007)
Log Message:
-----------
rcdefaults working with mplconfig
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/config/mplconfig.py
Modified: trunk/matplotlib/lib/matplotlib/config/mplconfig.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-08-22 19:38:08 UTC (rev 3729)
+++ trunk/matplotlib/lib/matplotlib/config/mplconfig.py 2007-08-22 20:11:18 UTC (rev 3730)
@@ -516,10 +516,14 @@
config_file)
def rcdefaults():
- global mplConfig
- mplConfig = MPLConfig()
- rcParams.update(rcParamsDefault)
+ """
+ Restore the default rc params - the ones that were created at
+ matplotlib load time
+ """
+ for key in rcParamsDefault.keys():
+ rcParams[key] = rcParamsDefault[key]
+
##############################################################################
# Auto-generate the mpl-data/matplotlib.conf
##############################################################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|