[Yt-svn] yt-commit r776 - trunk/yt/raven
mturk at wrangler.dreamhost.com
mturk at wrangler.dreamhost.com
Mon Sep 15 14:58:17 PDT 2008
Author: mturk
Date: Mon Sep 15 14:58:16 2008
New Revision: 776
URL: http://yt.spacepope.org/changeset/776
Log:
Two minor changes.
PlotCollection now implements iteration, and PlotCollectionInteractive objects
now set the window title to be the parameter file name.
Modified:
trunk/yt/raven/PlotCollection.py
Modified: trunk/yt/raven/PlotCollection.py
==============================================================================
--- trunk/yt/raven/PlotCollection.py (original)
+++ trunk/yt/raven/PlotCollection.py Mon Sep 15 14:58:16 2008
@@ -54,6 +54,10 @@
mylog.info("Created plot collection with default plot-center = %s",
list(self.c))
+ def __iter__(self):
+ for p in self.plots:
+ yield p
+
def save(self, basename, format="png", override=False):
"""
Same plots with automatically generated names, prefixed with *basename*
@@ -341,6 +345,7 @@
# Let's assume that axes and figure are not in the positional
# arguments -- probably safe!
new_fig = self.pylab.figure()
+ new_fig.canvas.set_window_title("%s" % (self.pf))
kwargs['axes'] = self.pylab.gca()
kwargs['figure'] = self.pylab.gcf()
retval = func(self, *args, **kwargs)
More information about the yt-svn
mailing list