calamari.style.LookSpec#

class calamari.style.LookSpec(name, description, family, mathtext, ticks_in, all_sides, minor_ticks, axes_linewidth, colors, linestyles, cmap, extra_rc=dict())#

Bases: object

Everything about a style that is not page geometry.

name#

Registry key.

Type:

str

description#

One line for available() and the docs.

Type:

str

family#

"serif" or "sans-serif"; the fallback chain is chosen to match.

Type:

str

mathtext#

matplotlib mathtext.fontset – "stix" is metrically compatible with Times, "stixsans" with Helvetica, so $\chi'$ in a label matches the surrounding lettering.

Type:

str

ticks_in, all_sides, minor_ticks

Tick direction, whether the top/right spines carry ticks too, and whether minor ticks are shown.

Type:

bool

axes_linewidth#

Spine and tick width in points. APS’s floor for any line is 0.5 pt.

Type:

float

colors#

Colour cycle.

Type:

tuple of str

linestyles#

Paired line-style cycle, or None for solid lines throughout.

Type:

tuple of str or None

cmap#

image.cmap for calamari.plot.draw_map() and friends; both defaults are perceptually uniform and monotonic in greyscale.

Type:

str