colour.plotting.common.font_scaling#
- colour.plotting.common.font_scaling(scaling: LiteralFontScaling, value: float) Generator [source]#
Define a context manager setting temporarily a Matplotlib font scaling.
- 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