Рубрики

purple

Which shades blend with purple

Delivery Wed, Nov 22


seaborn.color_palette#

Return a list of colors or continuous colormap defining a palette.

  • Name of a seaborn palette (deep, muted, bright, pastel, dark, colorblind)
  • Name of matplotlib colormap
  • ‘husl’ or ‘hls’
  • ‘ch:’
  • ‘light:’, ‘dark:’, ‘blend:,’,
  • A sequence of colors in any format matplotlib accepts

Calling this function with palette=None will return the current matplotlib color cycle.

This function can also be used in a with statement to temporarily set the color cycle for a plot or set of plots.

See the tutorial for more information.

Parameters : palette None, string, or sequence, optional

Name of palette or None to return current palette. If a sequence, input colors are used but possibly cycled and desaturated.

n_colors int, optional

Number of colors in the palette. If None , the default will depend on how palette is specified. Named palettes default to 6 colors, but grabbing the current palette or passing in a list of colors will not change the number of colors unless this is specified. Asking for more colors than exist in the palette will cause it to cycle. Ignored when as_cmap is True.

desat float, optional

Proportion to desaturate each color by.

as_cmap bool

Returns : list of RGB tuples or class: matplotlib.colors.ListedColormap

Set the default color cycle for all plots.

Reassign color codes like “b” , “g” , etc. to colors from one of the seaborn palettes.

Calling with no arguments returns all colors from the current default color cycle:

sns.color_palette() 

Other variants on the seaborn categorical color palette can be referenced by name:

sns.color_palette("pastel") 

Return a specified number of evenly spaced hues in the “HUSL” system:

sns.color_palette("husl", 9) 

Return all unique colors in a categorical Color Brewer palette:

sns.color_palette("Set2") 

Return a diverging Color Brewer palette as a continuous colormap:

sns.color_palette("Spectral", as_cmap=True) 

Spectral color map

sns.color_palette("flare") 

Return one of the perceptually-uniform palettes included in seaborn as a continuous colormap:

sns.color_palette("flare", as_cmap=True) 

flare color map

Return a customized cubehelix color palette:

sns.color_palette("ch:s=.25,rot=-.25", as_cmap=True) 

seaborn_cubehelix color map

Return a light sequential gradient:

sns.color_palette("light:#5A9", as_cmap=True) 

blend color map

sns.color_palette("dark:#5A9_r", as_cmap=True) 

blend color map

sns.color_palette("blend:#7AB,#EDA", as_cmap=True) 

blend color map

with sns.color_palette("Set3"): sns.relplot(x=x, y=y, hue=hue, s=500, legend=False, height=1.3, aspect=4) sns.relplot(x=x, y=y, hue=hue, s=500, legend=False, height=1.3, aspect=4) 

../_images/color_palette_23_0.png ../_images/color_palette_23_1.png

See the underlying color values as hex codes:

print(sns.color_palette("pastel6").as_hex()) 
['#a1c9f4', '#8de5a1', '#ff9f9b', '#d0bbff', '#fffea3', '#b9f2f0'] 





Redi Shade No Tools Easy Lift Trim-at-Home Cordless Pleated Light Filtering Fabric Shade White, 36 in x 64 in, (Fits windows 19 in – 36 in)

Delivery Wed, Nov 15

Ships to Poland

Options:

More Buying Choices
$16.70 (27 used & new offers)

More results

Redi Shade No Tools Original Room Darkening Pleated Paper Shade Gray, 36 in x 72 in, 6 Pack

Redi Shade No Tools Original Room Darkening Pleated Paper Shade Gray, 36 in x 72 in, 6 Pack

Delivery Tue, Nov 21

Ships to Poland

Options:

More Buying Choices
$18.21 (13 used & new offers)

Redi Shade No Tools Easy Lift Trim-at-Home Cordless Pleated Light Blocking Fabric Shade White, 36 in x 64 in, (Fits window.

Redi Shade No Tools Easy Lift Trim-at-Home Cordless Pleated Light Blocking Fabric Shade White, 36 in x 64 in, (Fits windows 19 in – 36 in)

Delivery Tue, Nov 21

Ships to Poland

Options:

More Buying Choices
$25.25 (17 used & new offers)

Bali Blinds Cordless Light Filtering Cellular Shade, 27

Colin Wynn
the authorColin Wynn

Leave a Reply