Skip to content

Commit

Permalink
Paternalism
Browse files Browse the repository at this point in the history
  • Loading branch information
beyarkay authored Oct 21, 2023
1 parent f4e2ad8 commit 7a465e2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion seaborn/palettes.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,11 @@ def color_palette(palette=None, n_colors=None, desat=None, as_cmap=False):
# Perhaps a named matplotlib colormap?
palette = mpl_palette(palette, n_colors, as_cmap=as_cmap)
except (ValueError, KeyError): # Error class changed in mpl36
valid_palettes = QUAL_PALETTES + list(mpl.colormaps)
valid_palettes = [
cm for cm in
QUAL_PALETTES + list(mpl.colormaps)
if cm != 'jet'
]
raise ValueError(
f"{palette!r} is not a valid palette name.\n"
f" Valid palettes include {valid_palettes}."
Expand Down

0 comments on commit 7a465e2

Please sign in to comment.