LSYS / forestplot

A Python package to make publication-ready but customizable coefficient plots.
http://forestplot.rtfd.io
MIT License
110 stars 10 forks source link

Change group variable font size #71

Closed amaa11 closed 8 months ago

amaa11 commented 1 year ago

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 1 year ago

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 
              )

image

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,
              )

image

github-actions[bot] commented 8 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 8 months ago

This issue was closed because it has been inactive.