with_font_size#
- penzai.treescope.figures.with_font_size(subfigure: Any, size: str | float) RendersAsRootInIPython [source]#
Returns a scaled version of the first figure.
- Parameters:
subfigure – A value to render. Will be wrapped using
wrap_as_treescope_figure
.size – A multiplier for the font size (as a float) or a string giving a specific CSS font size (e.g. “14pt” or “2em”).