seaborn color code example
Example 1: list of seaborn color palette
sns.color_palette("rocket", as_cmap=True)
Example 2: colours seaborn
palette_colors = {"Rural": "green", "Urban": "blue"}
sns.countplot(data=df, x="x_label", hue="grouping_variable",
palette=palette_colors)
Example 3: cmap seaborn
palette or cmapseaborn color palette or matplotlib colormap. List-like object of colors as RGB tuples, or colormap object that can map continuous values to colors