Skip to content

Commit 1067edd

Browse files
committed
Add helpful warning message when users pass cmap and colors
1 parent 7071086 commit 1067edd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

proplot/axes/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2500,7 +2500,8 @@ def _parse_cmap(
25002500
if cmap is not None and colors is not None:
25012501
warnings._warn_proplot(
25022502
f'You specifed both cmap={cmap!r} and the qualitative-colormap '
2503-
f'colors={colors!r}. Ignoring the latter.'
2503+
f"colors={colors!r}. Ignoring 'colors'. If you meant to specify the "
2504+
f'edge color please use ec={colors!r} or edgecolor={colors!r} instead.'
25042505
)
25052506
colors = None
25062507
if colors is not None:

0 commit comments

Comments
 (0)