Using seaborn's choose_colorbrewer_palette()

1.5k Views Asked by At

Sorry if this is a dumb question, but I'm trying to use seaborn's choose_colorbrewer_palette() method. From a jupyter notebook, sns.choose_colorbrewer_palette() brings up the interactive tool that you can select color schemes with, but I can't figure out how to save the color scheme and actually use it in a graph. Any help? Thanks a lot!

Danny

1

There are 1 best solutions below

4
On

The sns.choose_colorbrewer_palette() returns the the colorscheme you want to use. Depending on whether the as_cmap argument is true or false it will either return a list of colors ("seaborn palette") or a matplotlib colormap.

enter image description here