[yt-svn] commit/yt: ngoldbaum: Fixing an API inconsistency introduced in f921bb4

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Mon Sep 8 20:06:55 PDT 2014


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/ecd32f6fc3d3/
Changeset:   ecd32f6fc3d3
Branch:      yt
User:        ngoldbaum
Date:        2014-09-09 05:05:14
Summary:     Fixing an API inconsistency introduced in f921bb4
Affected #:  1 file

diff -r 4444ee578e9968f136123f87125e02d41c84737e -r ecd32f6fc3d3d23845a1b2b35a7c98adf0a99967 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -199,7 +199,7 @@
         return self
 
     @invalidate_plot
-    def set_cmap(self, field, cmap_name):
+    def set_cmap(self, field, cmap):
         """set the colormap for one of the fields
 
         Parameters
@@ -207,7 +207,7 @@
         field : string
             the field to set the colormap
             if field == 'all', applies to all plots.
-        cmap_name : string or tuple
+        cmap : string or tuple
             If a string, will be interpreted as name of the colormap.
             If a tuple, it is assumed to be of the form (name, type, number)
             to be used for brewer2mpl functionality. (name, type, number, bool)
@@ -221,7 +221,7 @@
             fields = [field]
         for field in self.data_source._determine_fields(fields):
             self._colorbar_valid = False
-            self._colormaps[field] = cmap_name
+            self._colormaps[field] = cmap
         return self
 
     @invalidate_plot

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list