show_colors
- show_colors(*, nhues=17, minsat=10, unknown='User', include=None, ignore=None)[source]
Generate tables of the registered color names. Adapted from this example.
- Parameters:
nhues (
int, optional) – The number of breaks between hues for grouping “like colors” in the color table.minsat (
float, optional) – The threshold saturation, between0and100, for designating “gray colors” in the color table.unknown (
str, default:'User') – Category name for color names that are unknown to ultraplot. Set this toFalseto hide unknown color names.include (
stror sequence ofstr, default:None) – Category names to be shown in the table. Use this to limit the table to a subset of categories. Valid categories are'base','css4','opencolor','xkcd'.ignore (
stror sequence ofstr, default:'CSS4') – Used only ifincludewas not passed. Category names to be removed from the colormap table.
- Returns:
ultraplot.figure.Figure– The figure.ultraplot.gridspec.SubplotGrid– The subplot grid.