From 74580918552c1d8204ada9c52cb4a23609129b28 Mon Sep 17 00:00:00 2001 From: Damon McDougall Date: Wed, 29 Aug 2012 12:05:29 +0100 Subject: [PATCH 1/2] Make default arrow head width sensible Currently the default head width is too small to produce a visible arrow head by default, so make it bigger. --- lib/matplotlib/patches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/patches.py b/lib/matplotlib/patches.py index 54328f593583..4ad03ee410de 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -1021,7 +1021,7 @@ def __init__(self, x, y, dx, dy, width=0.001, length_includes_head=False, """ if head_width is None: - head_width = 3 * width + head_width = 20 * width if head_length is None: head_length = 1.5 * head_width From 07ffe75c322124e74a6f2fc1ead853bcc0bd7367 Mon Sep 17 00:00:00 2001 From: Damon McDougall Date: Wed, 5 Sep 2012 19:41:26 +0100 Subject: [PATCH 2/2] Update api change to reflect new default --- doc/api/api_changes.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/doc/api/api_changes.rst b/doc/api/api_changes.rst index 82c3d0640533..41c5366a1d16 100644 --- a/doc/api/api_changes.rst +++ b/doc/api/api_changes.rst @@ -15,6 +15,10 @@ For new features that were added to matplotlib, please see Changes in 1.3.x ================ +* In :class:`~matplotlib.patches.FancyArrow`, the default arrow head width, + ``head_width``, has been made larger to produce a visible arrow head. The new + value of this kwarg is ``head_width = 20 * width``. + * Removed call of :meth:`~matplotlib.axes.Axes.grid` in :meth:`~matplotlib.pyplot.plotfile`. To draw the axes grid, set to *True* matplotlib.rcParams['axes.grid'] or ``axes.grid`` in ``.matplotlibrc`` or