Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ec6910c

Browse filesBrowse 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
Copy full SHA for ec6910c

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/quiver.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/quiver.py
+5Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.