plotnine.themes.theme_tufte

class plotnine.themes.theme_tufte(base_size=11, base_family=None, ticks=True)[source]

Tufte Maximal Data, Minimal Ink Theme

Theme based on Chapter 6 'Data-Ink Maximization and Graphical Design of Edward Tufte The Visual Display of Quantitative Information. No border, no axis lines, no grids. This theme works best in combination with geom_rug() or geom_rangeframe().

The default font family is set to 'serif' as he uses serif fonts for labels in 'The Visual Display of Quantitative Information'. The serif font used by Tufte in his books is a variant of Bembo, while the sans serif font is Gill Sans. If these fonts are installed on your system, consider setting them explicitly via the argument base_family.

Parameters
base_sizeint, optional

Base font size. All text sizes are a scaled versions of the base font size. Default is 11.

base_familystr, optional

Base font family.

ticks: logical, optional

Show axis ticks?

Tufte, Edward R. (2001) The Visual Display of Quantitative
Information, Chapter 6.
Translated from the R ggthemes package by hyiltiz <hyiltiz@gmail.com>.
Released under GNU GPL v2 license or later.