[yt-svn] commit/yt-doc: xarthisius: Replace whitespaces in colormaps with underscore to make resulting images more browser friendly
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Sep 6 15:52:09 PDT 2013
1 new commit in yt-doc:
https://bitbucket.org/yt_analysis/yt-doc/commits/7a3be344b196/
Changeset: 7a3be344b196
User: xarthisius
Date: 2013-09-07 00:44:48
Summary: Replace whitespaces in colormaps with underscore to make resulting images more browser friendly
Affected #: 1 file
diff -r d0ccdc8417b5b80ca2bcc8eaacd4ad9080749d22 -r 7a3be344b1961538c6fcfe475af52c544ec40fb0 source/visualizing/colormaps/cmap_images.py
--- a/source/visualizing/colormaps/cmap_images.py
+++ b/source/visualizing/colormaps/cmap_images.py
@@ -11,4 +11,4 @@
if cmap.startswith("idl"):
continue
p.set_cmap(field="Density", cmap=cmap)
- p.save('Projection_%s.png' % cmap)
+ p.save('Projection_%s.png' % cmap.replace(' ', '_'))
Repository URL: https://bitbucket.org/yt_analysis/yt-doc/
--
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