[yt-svn] commit/yt: xarthisius: Fix the way that pylab is imported in InteractiveCamera
Bitbucket
commits-noreply at bitbucket.org
Sun Jul 15 15:36:36 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2e8c4d3dfd2f/
changeset: 2e8c4d3dfd2f
branch: yt
user: xarthisius
date: 2012-07-13 18:34:55
summary: Fix the way that pylab is imported in InteractiveCamera
affected #: 1 file
diff -r 1783a4ae8efa83a35099f3d421d6b80234e25eb5 -r 2e8c4d3dfd2f715fb864779973c7eddae6ad2dd5 yt/visualization/volume_rendering/camera.py
--- a/yt/visualization/volume_rendering/camera.py
+++ b/yt/visualization/volume_rendering/camera.py
@@ -597,17 +597,17 @@
class InteractiveCamera(Camera):
frames = []
- def snapshot(self, fn = None, clip_ratio = None):
- import matplotlib
- matplotlib.pylab.figure(2)
+ def snapshot(self, fn=None, clip_ratio=None):
+ import matplotlib.pylab as pylab
+ pylab.figure(2)
self.transfer_function.show()
- matplotlib.pylab.draw()
+ pylab.draw()
im = Camera.snapshot(self, fn, clip_ratio)
- matplotlib.pylab.figure(1)
- matplotlib.pylab.imshow(im/im.max())
- matplotlib.pylab.draw()
+ pylab.figure(1)
+ pylab.imshow(im / im.max())
+ pylab.draw()
self.frames.append(im)
-
+
def rotation(self, theta, n_steps, rot_vector=None):
for frame in Camera.rotation(self, theta, n_steps, rot_vector):
if frame is not None:
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