ref_dims

Module Contents

class ref_dims.RefDims(axis: str, n_sigfigs: Optional[int] = 6)

Reference widths and heights by name.

Example

widths[1"]
widths['1/3 2_col']
widths['(2/1) 2_col']

Note

If width_pad (height_pad, respectively) is set, this will be included in the calculation. For example, (1/3) 2_col will subtract off the appropriate padding for 3 cols (2 spaces shared between 3 columns). The size is then rounded to sigfigs after – normally 6 sigfigs, but overridden with width_sigfigs / height_sigfigs. The sum / difference is applied after.

Initialize self. See help(type(self)) for accurate signature.

point(item: str) float

Returns the resulting value (calling self[item]), also setting the text and value pointers in-place. It’s best for this to match plt.rcParams[figure.figsize], but this is not required.