[yt-svn] commit/yt: ngoldbaum: mpl_kwargs should be an empty dict rather than None by default.
Bitbucket
commits-noreply at bitbucket.org
Mon Sep 17 16:04:27 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2a6872ca2489/
changeset: 2a6872ca2489
branch: yt
user: ngoldbaum
date: 2012-09-18 01:04:08
summary: mpl_kwargs should be an empty dict rather than None by default.
affected #: 1 file
diff -r 165fc415608a397479110e532109c5a6f773650e -r 2a6872ca2489c0e8cd38fd5fecc9738b03fefc52 yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -809,7 +809,7 @@
raise RuntimeError("Colormap '%s' does not exist!" % str(cmap))
self.plots[field].image.set_cmap(cmap)
- def save(self,name=None,mpl_kwargs=None):
+ def save(self,name=None,mpl_kwargs={}):
"""saves the plot to disk.
Parameters
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