From 281461a1bf496bbad52a508959cdf1b9f23a56b6 Mon Sep 17 00:00:00 2001 From: thehappycheese Date: Tue, 19 Mar 2024 15:54:51 +0800 Subject: [PATCH 1/2] FancyArrowPatch docs; emphasise ShrinkA/B in points unlike parts of the Annotate api that use fraction --- 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 b5be74af781a..65e3822e5d02 100644 --- a/lib/matplotlib/patches.py +++ b/lib/matplotlib/patches.py @@ -4189,7 +4189,7 @@ def __init__(self, posA=None, posB=None, *, Head and tail patches, respectively. shrinkA, shrinkB : float, default: 2 - Shrinking factor of the tail and head of the arrow respectively. + Shrink amount, in points, of the tail and head of the arrow respectively. mutation_scale : float, default: 1 Value with which attributes of *arrowstyle* (e.g., *head_length*) From ab407deb39dc2b189ed0713a3930c6ff924706a4 Mon Sep 17 00:00:00 2001 From: thehappycheese Date: Tue, 19 Mar 2024 15:56:49 +0800 Subject: [PATCH 2/2] Annotate docs; emphasise that the FancyArrow shrinkA/B is in points unlike the simple arrow uses fraction --- lib/matplotlib/text.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index e1f3a88809de..40cd8c8cd6f7 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -1767,8 +1767,8 @@ def transform(renderer) -> Transform relpos See below; default is (0.5, 0.5) patchA Default is bounding box of the text patchB Default is None - shrinkA Default is 2 points - shrinkB Default is 2 points + shrinkA In points. Default is 2 points + shrinkB In points. Default is 2 points mutation_scale Default is text size (in points) mutation_aspect Default is 1 ? Any `.FancyArrowPatch` property 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