From 7a465e2007355154757eb259b59d351051614ac0 Mon Sep 17 00:00:00 2001 From: Boyd Kane <33420535+beyarkay@users.noreply.github.com> Date: Sat, 21 Oct 2023 10:45:39 +0200 Subject: [PATCH] Paternalism --- seaborn/palettes.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/seaborn/palettes.py b/seaborn/palettes.py index 31a1d89b23..8b2ffa59ef 100644 --- a/seaborn/palettes.py +++ b/seaborn/palettes.py @@ -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}."