with_font_size

Contents

with_font_size#

treescope.figures.with_font_size(subfigure: Any, size: str | float) figures_impl.TreescopeFigure[source]#

Returns a scaled version of the first figure.

Parameters:
  • subfigure – A value to render.

  • size – A multiplier for the font size (as a float) or a string giving a specific CSS font size (e.g. “14pt” or “2em”).