Skip to content

Commit 32140cb

Browse files
fix fancyarrowpatch-joinstyle
1 parent 21f1355 commit 32140cb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/matplotlib/patches.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4035,6 +4035,8 @@ def __init__(self, posA=None, posB=None,
40354035
' and will be removed in Matplotlib 3.1'),
40364036
name='connector',
40374037
obj_type='keyword argument')
4038+
kwargs.setdefault("joinstyle", "round")
4039+
kwargs.setdefault("capstyle", "round")
40384040
Patch.__init__(self, **kwargs)
40394041

40404042
if posA is not None and posB is not None and path is None:
@@ -4285,8 +4287,8 @@ def draw(self, renderer):
42854287
return
42864288

42874289
# FancyArrowPatch has traditionally forced the capstyle and joinstyle.
4288-
with cbook._setattr_cm(self, _capstyle='round', _joinstyle='round'), \
4289-
self._bind_draw_path_function(renderer) as draw_path:
4290+
#cbook._setattr_cm(self, _capstyle='round', _joinstyle='round'), \
4291+
with self._bind_draw_path_function(renderer) as draw_path:
42904292

42914293
# FIXME : dpi_cor is for the dpi-dependency of the linewidth. There
42924294
# could be room for improvement.

0 commit comments

Comments
 (0)