theme_ezrsurvey

theme_ezrsurvey(base_size=BASE_SIZE, base_family=None, transparent=False)

ezrsurvey plotnine themes.

A clean, presentation-first look for survey reporting: no axis ticks, no chart junk, bold centred titles, and faint gridlines only where you ask for them. The base theme_ezrsurvey() strips gridlines entirely (best for bar charts that carry their own data labels); the theme_ezrsurvey_x(), theme_ezrsurvey_y() and theme_ezrsurvey_xy() variants add back faint major gridlines on the named axes. transparent=True makes the backgrounds transparent for slides. All the plot_*() helpers apply one of these for you.

R’s “sans” family is matplotlib’s “sans-serif”.

Parameters

Name Type Description Default
base_size float Base font size in points. Default 11. BASE_SIZE
base_family str Base font family. None (default) uses the brand body font when one is set and installed (see use_brand()), else “sans-serif”. None
transparent bool Make the plot, panel and legend backgrounds transparent. Default False. False

Returns

Name Type Description
plotnine.theme A theme to add to a plot with +.

See Also

theme_transparent

Examples

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