Skip to content

Commit 3304800

Browse files
fix fancyarrowpatch-joinstyle
1 parent 21f1355 commit 3304800

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/patches.py

Lines changed: 3 additions & 3 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:
@@ -4284,9 +4286,7 @@ def draw(self, renderer):
42844286
if not self.get_visible():
42854287
return
42864288

4287-
# 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:
4289+
with self._bind_draw_path_function(renderer) as draw_path:
42904290

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

0 commit comments

Comments
 (0)