From be196c569915a1dfba422570082523ea3d0a385c Mon Sep 17 00:00:00 2001 From: Daniel Kohler <11864045+ddkohler@users.noreply.github.com> Date: Wed, 27 May 2026 10:53:42 -0500 Subject: [PATCH 1/2] wrap title text --- WrightTools/artists/_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WrightTools/artists/_helpers.py b/WrightTools/artists/_helpers.py index bf37095a..7f5d237e 100644 --- a/WrightTools/artists/_helpers.py +++ b/WrightTools/artists/_helpers.py @@ -70,11 +70,11 @@ def _title(fig, title, subtitle="", *, margin=1, fontsize=20, subfontsize=18): subfontsize : number (optional) Subtitle fontsize. Default is 18. """ - fig.suptitle(title, fontsize=fontsize) + fig.suptitle(title, fontsize=fontsize, wrap=True) height = fig.get_figheight() # inches distance = margin / 2.0 # distance from top of plot, in inches ratio = 1 - distance / height - return fig.text(0.5, ratio, subtitle, fontsize=subfontsize, ha="center", va="top") + return fig.text(0.5, ratio, subtitle, fontsize=subfontsize, ha="center", va="top", wrap=True) def add_sideplot( From 1728c9c28f3c2f5b2f83dafe5a83ec2678fd195c Mon Sep 17 00:00:00 2001 From: Daniel Kohler <11864045+ddkohler@users.noreply.github.com> Date: Tue, 9 Jun 2026 12:51:17 -0500 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61df4d82..b88d3412 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/). ### Changed - `interact2D`: replaced SimpleNamespace object with a dataclass for more explicit typing +- `quick1D`, `quick2D`: will try to wrap titles if they get too long. - `quick1D`, `quick2D`: refactored for integration with iterators, animations (these functions are wrappers for the class `Quick1DLegacy`, `Quick2DLegacy`). ### Fixed