From 8462704eb37e2e3c571fbd4d5a02b7b6da2c62be Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 12 Jun 2024 09:45:28 +0200 Subject: [PATCH] DOC: Clarify scope of wrap. Closes #28358 by documenting the effect of wrap. --- lib/matplotlib/text.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/matplotlib/text.py b/lib/matplotlib/text.py index 40cd8c8cd6f7..7fc19c042a1f 100644 --- a/lib/matplotlib/text.py +++ b/lib/matplotlib/text.py @@ -606,6 +606,10 @@ def set_wrap(self, wrap): """ Set whether the text can be wrapped. + Wrapping makes sure the text is completely within the figure box, i.e. + it does not extend beyond the drawing area. It does not take into + account any other artists. + Parameters ---------- wrap : bool