8000 Make barbs draw correctly again (Fixes #5803) · matplotlib/matplotlib@ec6910c · GitHub
[go: up one dir, main page]

Skip to content

Commit ec6910c

Browse files
committed
Make barbs draw correctly again (Fixes #5803)
Changes to default linewidth/outline for polygons caused barbs to not be drawn, since they relied on the previous default linewidth of 1. Now we pass a linewidth of 1 unless explicitly overridden.
1 parent 7d1a7c2 commit ec6910c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/quiver.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,11 @@ def __init__(self, ax, *args, **kw):
922922
kw['edgecolors'] = barbcolor
923923
kw['facecolors'] = flagcolor
924924

925+
# Explicitly set a line width if we're not given one, otherwise
926+
# polygons are not outlined and we get no barbs
927+
if 'linewidth' not in kw and 'lw' not in kw:
928+
kw['linewidth'] = 1
929+
925930
# Parse out the data arrays from the various configurations supported
926931
x, y, u, v, c = _parse_args(*args)
927932
self.x = x

0 commit comments

Comments
 (0)
0