Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit6be9771

Browse files
committed
Merge pull request#1186 from dmcdougall/arrow
Make default arrowhead width more sensible
2 parentsf275b21 +07ffe75 commit6be9771

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎doc/api/api_changes.rst

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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
ifhead_widthisNone:
1024-
head_width=3*width
1024+
head_width=20*width
10251025
ifhead_lengthisNone:
10261026
head_length=1.5*head_width
10271027

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp