Skip to content

Make default arrow head width sensible #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down