From 26ef4e6754405b52627af131505e3cc9c742f7b7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 04:30:29 +0000 Subject: [PATCH 1/2] Initial plan From dd1249a2da85541a315667908b834b668018d7ca Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 04:31:18 +0000 Subject: [PATCH 2/2] Update _parse_level_norm docstring Returns section to reflect possible return types Co-authored-by: cvanelteren <19485143+cvanelteren@users.noreply.github.com> --- ultraplot/axes/plot.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ultraplot/axes/plot.py b/ultraplot/axes/plot.py index be24a8af4..9e7317397 100644 --- a/ultraplot/axes/plot.py +++ b/ultraplot/axes/plot.py @@ -4759,8 +4759,10 @@ def _parse_level_norm( Returns ------- - norm : `~ultraplot.colors.DiscreteNorm` - The discrete normalizer. + norm : `~ultraplot.colors.DiscreteNorm` or `~matplotlib.colors.Normalize` + The discrete normalizer, or the original continuous normalizer when + ``min_levels=1`` (e.g. line contours) and the input norm is not a + `~matplotlib.colors.BoundaryNorm`. cmap : `~matplotlib.colors.Colormap` The possibly-modified colormap. kwargs