calamari.style.rc#

calamari.style.rc(spec, *, width='single', look=None, height_cm=None)#

The rcParams for a journal and look, as a plain dict.

This is the whole style; use(), context() and figure() are thin wrappers over it. Returned as a dict so it can be inspected, diffed, or merged with a caller’s own overrides ({**calamari.style.rc("prb"), "lines.linewidth": 1.5}).

Parameters:
  • spec (str) – "jpcm", "prb", an alias, or "journal:look".

  • width (str | float) – Figure width – one column, the full text width, or a value in cm (for a 1.5-column APS figure, say).

  • look (str | None) – Look name; overrides the journal’s default. Equivalent to the :look suffix.

  • height_cm (float | None) – Figure height in cm. Default is width / DEFAULT_ASPECT.

Return type:

dict[str, Any]

Returns:

dict – Keys and values acceptable to matplotlib.rcParams.update.