[yt-svn] commit/yt: MatthewTurk: Setting default command line colormap to algae

Bitbucket commits-noreply at bitbucket.org
Mon Jul 23 14:38:02 PDT 2012


1 new commit in yt:


https://bitbucket.org/yt_analysis/yt/changeset/7eb83a022261/
changeset:   7eb83a022261
branch:      yt
user:        MatthewTurk
date:        2012-07-23 23:37:51
summary:     Setting default command line colormap to algae
affected #:  2 files

diff -r 496560a606e77c99a6ef69053725de63c38bd8b8 -r 7eb83a0222618770a6f47e616cb3708e2399fc5e yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -134,7 +134,7 @@
                    help="Field to weight projections with"),
     cmap    = dict(long="--colormap",
                    action="store", type=str,
-                   dest="cmap", default="jet",
+                   dest="cmap", default="algae",
                    help="Colormap name"),
     zlim    = dict(short="-z", long="--zlim",
                    action="store", type=float,
@@ -1161,7 +1161,7 @@
                 time = pf.current_time*pf['Time']*pf['years']
                 plt.annotate_text((0.2,0.8), 't = %5.2e yr'%time)
 
-            plt.set_cmap(args.field,args.cmap)
+            plt.set_cmap(args.field, args.cmap)
             if args.zlim:
                 plt.set_zlim(args.field,*args.zlim)
             if not os.path.isdir(args.output): os.makedirs(args.output)


diff -r 496560a606e77c99a6ef69053725de63c38bd8b8 -r 7eb83a0222618770a6f47e616cb3708e2399fc5e yt/visualization/plot_window.py
--- a/yt/visualization/plot_window.py
+++ b/yt/visualization/plot_window.py
@@ -31,6 +31,7 @@
 from functools import wraps
 
 import numpy as na
+from ._mpl_imports import *
 from .color_maps import yt_colormaps, is_colormap
 from .image_writer import \
     write_image, apply_colormap
@@ -41,7 +42,6 @@
     callback_registry
 from .tick_locators import LogLocator, LinearLocator
 from yt.utilities.delaunay.triangulate import Triangulation as triang
-from ._mpl_imports import *
 
 from yt.funcs import *
 from yt.utilities.lib import write_png_to_string
@@ -595,7 +595,6 @@
 
             self.plots[f] = WindowPlotMPL(self._frb[f], extent, self._field_transform[f], 
                                           self._colormaps[f], size, zlim)
-            
             self.plots[f].cb = self.plots[f].figure.colorbar(
                 self.plots[f].image, cax = self.plots[f].cax)

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