[python-dtcwt] 78/497: improve directionality plot a little in getting started

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:05:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository python-dtcwt.

commit c37866b3215787428687c5a1eb0dcee8e0932c21
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date:   Thu Aug 8 21:40:58 2013 +0100

    improve directionality plot a little in getting started
---
 docs/3d-complex-coeffs.png | Bin 749418 -> 418214 bytes
 docs/gettingstarted.rst    |   9 +++++++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/docs/3d-complex-coeffs.png b/docs/3d-complex-coeffs.png
index e66bfee..bfdf2b9 100644
Binary files a/docs/3d-complex-coeffs.png and b/docs/3d-complex-coeffs.png differ
diff --git a/docs/gettingstarted.rst b/docs/gettingstarted.rst
index 4532763..8998b43 100644
--- a/docs/gettingstarted.rst
+++ b/docs/gettingstarted.rst
@@ -190,13 +190,18 @@ directional sensitivity of the transform::
     nplts = Yh[-1].shape[3]
     nrows = np.ceil(np.sqrt(nplts))
     ncols = np.ceil(nplts / nrows)
+    W = np.max(Yh[-1].shape[:3])
     for idx in xrange(Yh[-1].shape[3]):
         C = np.abs(Yh[-1][:,:,:,idx])
         ax = gcf().add_subplot(nrows, ncols, idx+1, projection='3d')
         ax.set_aspect('equal')
-        x,y,z = np.nonzero(C > 2e-1)
-        ax.scatter(x, y, z, c=C[C > 2e-1].ravel())
+        good = C > 0.2*C.max()
+        x,y,z = np.nonzero(good)
+        ax.scatter(x, y, z, c=C[good].ravel())
+        ax.auto_scale_xyz((0,W), (0,W), (0,W))
         
+    tight_layout()
+            
 For a further directional sensitivity example, see :ref:`3d-directional-example`.
 
 .. figure:: 3d-complex-coeffs.png

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-dtcwt.git



More information about the debian-science-commits mailing list