Skip to content

Commit 6be9771

Browse files
committed
Merge pull request #1186 from dmcdougall/arrow
Make default arrowhead width more sensible
2 parents f275b21 + 07ffe75 commit 6be9771

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/api/api_changes.rst

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ For new features that were added to matplotlib, please see
1515
Changes in 1.3.x
1616
================
1717

18+
* In :class:`~matplotlib.patches.FancyArrow`, the default arrow head width,
19+
``head_width``, has been made larger to produce a visible arrow head. The new
20+
value of this kwarg is ``head_width = 20 * width``.
21+
1822
* Removed call of :meth:`~matplotlib.axes.Axes.grid` in
1923
:meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set to *True*
2024
matplotlib.rcParams['axes.grid'] or ``axes.grid`` in ``.matplotlibrc`` or

lib/matplotlib/patches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,7 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False,
10211021
10221022
"""
10231023
if head_width is None:
1024-
head_width = 3 * width
1024+
head_width = 20 * width
10251025
if head_length is None:
10261026
head_length = 1.5 * head_width
10271027

0 commit comments

Comments
 (0)