Seaborn: ValueError: No for palette='jet'

Viewed 1350

Running the following example from seaborn docs with argument palette='jet'

import seaborn as sns
tips = sns.load_dataset("tips")
ax = sns.boxplot(x="day", y="total_bill", hue="smoker", data=tips, palette='jet')

got the following error

    172         elif palette.lower() == "jet":
    173             # Paternalism
--> 174             raise ValueError("No.")
    175 
    176         elif palette.startswith("ch:"):

ValueError: No.

What's the reason for this error with the jet color palette ? I wonder if the error message can be more specific cause matplotlib docs states the following

The often-used jet colormap is included in this set of colormaps. We can see that the values vary widely throughout the colormap, making it a poor choice for representing data for viewers to see perceptually.

1 Answers

Seaborn does not contain jet color palette. Better to go with Matplotlib or use custom color palette. The available color schemes are enter image description here

Related