Skip to content

Commit 7a3c3f6

Browse files
committed
Always copy colormaps returned by Colormap
1 parent 006aef5 commit 7a3c3f6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

proplot/constructor.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,10 +670,8 @@ def _pop_modification(key):
670670
# Merge the resulting colormaps
671671
if len(cmaps) > 1: # more than one map and modify arbitrary properties
672672
cmap = cmaps[0].append(*cmaps[1:], **kwargs)
673-
elif kwargs: # modify arbitrary properties
674-
cmap = cmaps[0].copy(**kwargs)
675673
else:
676-
cmap = cmaps[0]
674+
cmap = cmaps[0].copy(**kwargs)
677675

678676
# Modify the colormap
679677
if discrete and isinstance(cmap, pcolors.ContinuousColormap): # noqa: E501

0 commit comments

Comments
 (0)