lets_plot.font_metrics_adjustment

lets_plot.font_metrics_adjustment(width_correction: numbers.Real) lets_plot.plot.core.FeatureSpec

Adjust estimated width of text labels on plot.

Allow for manual correction in a rare cases when plot layout looks broken due to either overestimation or underestimation of size of text labels on plot.

Parameters
width_correctionnumber

Correcting coefficient applied to default width estimate of a text label.

Returns
FeatureSpec

Metainfo specification.

Notes

Can be mixed with other plot features in a plot-expression:

p + ggsize(300, 500) + font_metrics_adjustment(1.3)