specsrbench.style

The one matplotlib style every figure in the paper uses.

Each notebook opened with the same 24-line rcParams block, copied by hand. They had not drifted, but nothing was stopping them: a figure whose tick direction quietly differs from its neighbours’ is not something a test catches and not something a reader can unsee.

Functions

use_agg()

Select the non-interactive backend, before pyplot is imported.

use_paper_style()

specsrbench.style.use_paper_style()[source]
Return type:

None

specsrbench.style.use_agg()[source]

Select the non-interactive backend, before pyplot is imported.

Figure building is a batch job; on a headless machine an interactive backend fails at import, which is a confusing way to be told there is no display.

Return type:

None