Change group variable font size
amaa11 opened this issue · 3 comments
amaa11 commented
Dear all,
Thanks so much for such amazing tool.
My question is how can I change the font size for groupvar ?
When I change the fontsize value, nothing happen for groupvar in term of font size.
Any suggestion please?
best
LSYS commented
hi @amaa11, use the (as of now) undocumented kwarg
grouplab_size
.
import forestplot as fp
df = fp.load_data("sleep")
fp.forestplot(df, # the dataframe with results data
estimate="r", # col containing estimated effect size
varlabel="label", # column containing variable label
groupvar="group", # Add variable groupings
)
Makeing the groupvar font large using grouplab_size=15
:
fp.forestplot(df, # the dataframe with results data
estimate="r", # col containing estimated effect size
varlabel="label", # column containing variable label
groupvar="group", # Add variable groupings
grouplab_size=18,
)