[yt-svn] commit/yt: MatthewTurk: Moving matplotlib/pylab imports inside subfunctions in image_handling.py.
Bitbucket
commits-noreply at bitbucket.org
Mon Mar 26 02:42:16 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/c08fcfa5c8b0/
changeset: c08fcfa5c8b0
branch: yt
user: MatthewTurk
date: 2012-03-26 11:42:05
summary: Moving matplotlib/pylab imports inside subfunctions in image_handling.py.
affected #: 1 file
diff -r 8b656ced446d4d37e7f46ae732ef413ec69c76c5 -r c08fcfa5c8b0da0f544e9c967dc5045c66a0f0db yt/visualization/volume_rendering/image_handling.py
--- a/yt/visualization/volume_rendering/image_handling.py
+++ b/yt/visualization/volume_rendering/image_handling.py
@@ -26,7 +26,6 @@
try: import pyfits
except: pass
import numpy as na
-import matplotlib; from matplotlib import pylab
from yt.funcs import *
@@ -82,6 +81,8 @@
elements. Optionally, *label*, *label_color* and *label_size* may be
specified.
"""
+ import matplotlib
+ import pylab
Nvec = image.shape[0]
image[na.isnan(image)] = 0.0
ma = image[image>0.0].max()
@@ -110,6 +111,7 @@
with "_rgb.png." *label*, *label_color* and *label_size* may also be
specified.
"""
+ import pylab
Nvec = image.shape[0]
image[na.isnan(image)] = 0.0
if image.shape[2] >= 4:
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