Hi there,
I might have found a bug which seems fixed by the attached patch.
The bug is in the FancyBBoxPatch class, which I encountered unsuccessfully
trying to minimize the padding of a fancy box around a small text.
In lieu of a testcase I submit the skeleton of a command causing troubles:
plt.annotate('{0}%'.format(100),xytext=(1,1),xy=(2,2),
arrowprops=dict(arrowstyle='->',
connectionstyle=connstyle,
color='b'
),
bbox=dict(facecolor='white',boxstyle='round',bounds=(1,1,1,1)),
color='b')
I can;t now recall the bug and I shifted away from FancyBBox and trying to
minimize the padding. In any case, I hope it helps.
Regards,
Janis
>From 2c6d4945cba3b794e0423cc869028ef84292be44 Mon Sep 17 00:00:00 2001
From: Janis Kalofolias <kalof...@ceid.upatras.gr>
Date: Mon, 7 Jul 2014 12:26:35 +0200
Subject: [PATCH] BF - fix for FancyBBoxPatch argument unpacking test
---
lib/matplotlib/patches.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py
index aea1132..5748edd 100644
--- a/lib/matplotlib/patches.py
+++ b/lib/matplotlib/patches.py
@@ -2460,7 +2460,7 @@ class FancyBboxPatch(Patch):
ACCEPTS: (left, bottom, width, height)
"""
- if len(args) == 0:
+ if len(args) == 1:
l, b, w, h = args[0]
else:
l, b, w, h = args
--
2.0.0.rc0
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel