[python-dtcwt] 304/497: plotting: fix length of quiver key arrows
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Tue Jul 21 18:06:17 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 cf4f7efc30c9421c0f8e4366a0c72ac391bedbda
Author: Rich Wareham <rjw57 at cam.ac.uk>
Date: Fri Jan 31 15:59:28 2014 +0000
plotting: fix length of quiver key arrows
A speculative fix for #58 which fixes the plot on my (@rjw57) machine. I
don't know if it is the *correct* fix though since I don't know what
units the 'length' parameter has.
Closes #58
---
dtcwt/plotting.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dtcwt/plotting.py b/dtcwt/plotting.py
index 994aee2..ad97c51 100644
--- a/dtcwt/plotting.py
+++ b/dtcwt/plotting.py
@@ -63,7 +63,7 @@ def overlay_quiver_DTCWT(image, vectorField, level, offset):
thiscolour = cmap(sb / float(vectorField.shape[2])) # Select colour for this subband
hq = quiver(g2*(2**level) + offset*(2**level), g1*(2**level) + offset*(2**level), np.real(vectorField[:,:,sb]), \
np.imag(vectorField[:,:,sb]), color=thiscolour, scale=scalefactor*2**level)
- quiverkey(hq, image.shape[1]+75, 50 + sb*50, 200, "subband " + np.str(sb), coordinates='data', color=thiscolour)
+ quiverkey(hq, image.shape[1]+75, 50 + sb*50, 1, "subband " + np.str(sb), coordinates='data', color=thiscolour)
hold(True)
return hq
--
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