File: bkf_plot.py

package info (click to toggle)
statsmodels 0.13.5%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 46,912 kB
  • sloc: python: 240,079; f90: 612; sh: 467; javascript: 337; asm: 156; makefile: 131; ansic: 16; xml: 9
file content (9 lines) | stat: -rw-r--r-- 222 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
from load_macrodata import dta
import matplotlib.pyplot as plt

import statsmodels.api as sm

cycles = sm.tsa.filters.bkfilter(dta[['realinv']], 6, 24, 12)

fig, ax = plt.subplots()
cycles.plot(ax=ax, style=['r--', 'b-'])