Skip to content

Commit c74365f

Browse files
authored
Merge pull request matplotlib#27947 from thehappycheese/main
Update docs for `FancyArrowPatch` & `Annotation` to make it clear that ShinkA/B parameters are in points and not fractional.
2 parents 5300bd6 + ab407de commit c74365f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/patches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4189,7 +4189,7 @@ def __init__(self, posA=None, posB=None, *,
41894189
Head and tail patches, respectively.
41904190
41914191
shrinkA, shrinkB : float, default: 2
4192-
Shrinking factor of the tail and head of the arrow respectively.
4192+
Shrink amount, in points, of the tail and head of the arrow respectively.
41934193
41944194
mutation_scale : float, default: 1
41954195
Value with which attributes of *arrowstyle* (e.g., *head_length*)

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1767,8 +1767,8 @@ def transform(renderer) -> Transform
17671767
relpos See below; default is (0.5, 0.5)
17681768
patchA Default is bounding box of the text
17691769
patchB Default is None
1770-
shrinkA Default is 2 points
1771-
shrinkB Default is 2 points
1770+
shrinkA In points. Default is 2 points
1771+
shrinkB In points. Default is 2 points
17721772
mutation_scale Default is text size (in points)
17731773
mutation_aspect Default is 1
17741774
? Any `.FancyArrowPatch` property

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy