[Yt-svn] yt-commit r1543 - branches/yt-1.5/yt/raven trunk/yt/raven

mturk at wrangler.dreamhost.com mturk at wrangler.dreamhost.com
Tue Nov 24 08:41:38 PST 2009


Author: mturk
Date: Tue Nov 24 08:41:35 2009
New Revision: 1543
URL: http://yt.enzotools.org/changeset/1543

Log:
Updating grid face colors and periodicity defaults between the two mechanisms
for making plots.



Modified:
   branches/yt-1.5/yt/raven/Callbacks.py
   branches/yt-1.5/yt/raven/PlotInterface.py
   trunk/yt/raven/PlotInterface.py

Modified: branches/yt-1.5/yt/raven/Callbacks.py
==============================================================================
--- branches/yt-1.5/yt/raven/Callbacks.py	(original)
+++ branches/yt-1.5/yt/raven/Callbacks.py	Tue Nov 24 08:41:35 2009
@@ -289,7 +289,7 @@
             if verts.size == 0: continue
             edgecolors = (0.0,0.0,0.0,self.alpha)
             grid_collection = matplotlib.collections.PolyCollection(
-                    verts, facecolors=(0.0,0.0,0.0,0.0),
+                    verts, facecolors="none",
                            edgecolors=edgecolors)
             plot._axes.hold(True)
             plot._axes.add_collection(grid_collection)

Modified: branches/yt-1.5/yt/raven/PlotInterface.py
==============================================================================
--- branches/yt-1.5/yt/raven/PlotInterface.py	(original)
+++ branches/yt-1.5/yt/raven/PlotInterface.py	Tue Nov 24 08:41:35 2009
@@ -43,7 +43,7 @@
 
 @check_plot_args
 def get_slice(pf, field, axis, center=None, axes=None, figure=None,
-              use_colorbar=True, **kwargs):
+              use_colorbar=True, periodic=True, **kwargs):
     """
     Get a single slice plot, with standard *field*, *axis* and *center*
     arguments.
@@ -51,21 +51,23 @@
     coord = center[axis]
     data_source = pf.hierarchy.slice(axis, coord, field, center, **kwargs)
     plot = PlotTypes.SlicePlot(data_source, field,
-            use_colorbar=use_colorbar, axes=axes, figure=figure)
+            use_colorbar=use_colorbar, axes=axes, figure=figure,
+            periodic=periodic)
     plot["Axis"] = lagos.axis_names[axis]
     return plot
 
 @check_plot_args
 def get_projection(pf, field, axis, weight_field=None, center=None,
                    axes=None, figure=None,
-              use_colorbar=True, **kwargs):
+              use_colorbar=True, periodic=True, **kwargs):
     """
     Get a single projection plot, with standard *field*, *axis* and *center*
     arguments.
     """
     data_source = pf.hierarchy.proj(axis, field, weight_field, center=center, **kwargs)
     plot = PlotTypes.ProjectionPlot(data_source, field,
-            use_colorbar=use_colorbar, axes=axes, figure=figure)
+            use_colorbar=use_colorbar, axes=axes, figure=figure,
+            periodic=periodic)
     plot["Axis"] = lagos.axis_names[axis]
     return plot
 

Modified: trunk/yt/raven/PlotInterface.py
==============================================================================
--- trunk/yt/raven/PlotInterface.py	(original)
+++ trunk/yt/raven/PlotInterface.py	Tue Nov 24 08:41:35 2009
@@ -43,7 +43,7 @@
 
 @check_plot_args
 def get_slice(pf, field, axis, center=None, axes=None, figure=None,
-              use_colorbar=True, **kwargs):
+              use_colorbar=True, periodic=True, **kwargs):
     """
     Get a single slice plot, with standard *field*, *axis* and *center*
     arguments.
@@ -51,21 +51,23 @@
     coord = center[axis]
     data_source = pf.hierarchy.slice(axis, coord, field, center, **kwargs)
     plot = PlotTypes.SlicePlot(data_source, field,
-            use_colorbar=use_colorbar, axes=axes, figure=figure)
+            use_colorbar=use_colorbar, axes=axes, figure=figure,
+            periodic=periodic)
     plot["Axis"] = lagos.axis_names[axis]
     return plot
 
 @check_plot_args
 def get_projection(pf, field, axis, weight_field=None, center=None,
                    axes=None, figure=None,
-              use_colorbar=True, **kwargs):
+              use_colorbar=True, periodic=True, **kwargs):
     """
     Get a single projection plot, with standard *field*, *axis* and *center*
     arguments.
     """
     data_source = pf.hierarchy.proj(axis, field, weight_field, center=center, **kwargs)
     plot = PlotTypes.ProjectionPlot(data_source, field,
-            use_colorbar=use_colorbar, axes=axes, figure=figure)
+            use_colorbar=use_colorbar, axes=axes, figure=figure,
+            periodic=periodic)
     plot["Axis"] = lagos.axis_names[axis]
     return plot
 



More information about the yt-svn mailing list