[Yt-svn] yt-commit r475 - trunk/yt/reason
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Thu May 15 16:38:11 PDT 2008
Author: mturk
Date: Thu May 15 16:38:10 2008
New Revision: 475
URL: http://yt.spacepope.org/changeset/475
Log:
Minor fix -- now we mandate that matplotlib is set to interactive mode, the
backend is set to WXAgg, and we supply pylab to the interpreter.
Modified:
trunk/yt/reason/App.py
trunk/yt/reason/__init__.py
Modified: trunk/yt/reason/App.py
==============================================================================
--- trunk/yt/reason/App.py (original)
+++ trunk/yt/reason/App.py Thu May 15 16:38:10 2008
@@ -80,7 +80,8 @@
'outputs':self.outputs,
'windows':self.windows,
'mainwindow':self,
- 'data_objects':self.data_objects}
+ 'data_objects':self.data_objects,
+ 'pylab':pylab}
wx.py.buffer.Buffer.updateNamespace = \
get_new_updateNamespace(self.locals)
self.int_panel = wx.Panel(self.main_splitter, -1)
Modified: trunk/yt/reason/__init__.py
==============================================================================
--- trunk/yt/reason/__init__.py (original)
+++ trunk/yt/reason/__init__.py Thu May 15 16:38:10 2008
@@ -39,6 +39,12 @@
import os, types, Toolbars
+# Now let's set up the matplotlib stuff
+import matplotlib
+matplotlib.interactive(True)
+matplotlib.use('WXAgg')
+import pylab
+
#import yt.raven.backends.MPL as be
from yt.raven import be, color_maps
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
More information about the yt-svn
mailing list