scale_fill_brand

scale_fill_brand()

Brand fill scale: discrete fills from pal_brand(), interpolated when a chart needs more colours.

Without a brand set, the scale falls back to the pal_sequential_blue defaults via pal_brand(). scale_color_brand is an alias of scale_colour_brand.

Examples

>>> from plotnine import ggplot, aes, geom_col
>>> df = calc_percentage(podracing_survey, "demo_gender")
>>> ggplot(df, aes("demo_gender", "pct", fill="demo_gender")) + geom_col() + scale_fill_brand()