Refactor line charts
Add pycache to gitignore