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.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to