colour.plotting.common.font_scaling#
- colour.plotting.common.font_scaling(scaling: LiteralFontScaling, value: float) Generator[source]#
Set a temporary Matplotlib font scaling using a context manager.
- Parameters:
scaling (LiteralFontScaling) – Font scaling to temporarily set.
value (float) – Value to temporarily set the font scaling with.
- Yields:
Generator.
- Return type:
Examples
>>> with font_scaling("medium-colour-science", 2): ... print(matplotlib.font_manager.font_scalings["medium-colour-science"]) 2 >>> print(matplotlib.font_manager.font_scalings["medium-colour-science"]) 1