statannotations
statannotations copied to clipboard
How to adjust the font size
This would be nice. Any update on this?
Should be pretty easy to edit line 540 of statannotations/Annotator.py to include a fontsize parameter from CONFIGURABLE_PARAMETERS.
A hacky work-around is to just explicitly define annotator._pvalue_format.fontsize after calling annotator.configure() in your script.
I'm afreaid I can't test right now, but you should be able to pass fontsize
to configure
to adjust the font size.
The default value is 'medium'
, options are currently float values or one of {'xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'}
(see Matplotlib's text reference)