Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix _parse_level_norm docstring to reflect conditional return type (#…
…600)

* Initial plan

* Update _parse_level_norm docstring Returns section to reflect possible return types

Co-authored-by: cvanelteren <19485143+cvanelteren@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Casper van Elteren <caspervanelteren@gmail.com>
Co-authored-by: cvanelteren <19485143+cvanelteren@users.noreply.github.com>
  • Loading branch information
3 people authored Feb 26, 2026
commit bf1dd57971d18eed3ffa15f9ec89d53b79006f3f
6 changes: 4 additions & 2 deletions ultraplot/axes/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading