Skip to content

v0.2.2

Compare
Choose a tag to compare
@LSYS LSYS released this 10 Feb 04:28
· 22 commits to main since this release
30ee8d0

What's Changed

  • Fix spacing issue at top of plot (fixes #48, #47)
  • Create notebook for some simple regression tests (closes #49)
  • Tidy imports using isort (closes #50)
  • Allowed thresholds and symbols for p-values to be passedthrough (fixes #51)
  • Fix different heigh and fontsize for confidence interval and p-value labels (fixes #53)
  • Update docs for RTD (closes #54)
  • Freeze matplotlib-inline dependency in setup.py (closes #56)

Forestplot

forestplot is a Python package to make publication-ready but customizable coefficient plots.

To install via PyPI:

pip install forestplot

Quickstart:

import forestplot as fp
df = fp.load_data("sleep")  # companion example data

fp.forestplot(df,  # the dataframe with results data
              estimate="r",  # col containing estimated effect size 
              ll="ll", hl="hl",  # columns containing conf. int. lower and higher limits
              varlabel="label",  # column containing variable label
              ylabel="Confidence interval",  # y-label title
              xlabel="Pearson correlation"  # x-label title
              )

See the README for more customizations.

Full Changelog: v0.2.0...v0.2.2