calamari.style.JournalSpec#

class calamari.style.JournalSpec(name, publisher, single_cm, double_cm, font_pt, default_look='classic', aliases=(), sources=())#

Bases: object

The page geometry a journal asks figures to be prepared for.

Frozen: a specification is a record of what a publisher states, and a caller wanting a different width passes it to rc() rather than editing the record. sources records the provenance of the dimensions so a figure’s geometry can be traced to its specification.

name#

Registry key, lower-case ("prb", "jpcm").

Type:

str

publisher#

Human-readable publisher and journal family.

Type:

str

single_cm, double_cm

Figure widths for a one-column and a full-width figure, in cm.

Type:

float

font_pt#

Lettering size at final figure size, in points. Tick labels and legends are set one point smaller.

Type:

float

default_look#

Key into LOOKS used when a spec string names no look.

Type:

str

aliases#

Other names resolving to this journal ("prl" for the APS geometry, say).

Type:

tuple of str

sources#

Where each number came from.

Type:

tuple of str

width_in(width)#

Resolve 'single'/'double'/a width in cm to inches.

Return type:

float