Skip to content

Commit 00a88d2

Browse files
committed
Fix issue parsing level lists
1 parent b3d254a commit 00a88d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proplot/axes/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,7 @@ def _sanitize_levels(key, array, minsize):
25062506
array, _ = pcolors._sanitize_levels(array, minsize)
25072507
elif isinstance(array, Integral):
25082508
pass
2509-
else:
2509+
elif array is not None:
25102510
raise ValueError(f'Invalid {key}={array}. Must be list or integer.')
25112511
if isinstance(norm, (mcolors.BoundaryNorm, pcolors.SegmentedNorm)):
25122512
if isinstance(array, Integral):

0 commit comments

Comments
 (0)