Skip to content

Adding an improved plot using seaborn #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions apis/platform_pricing.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
and pass it to this script using the --giantbomb-api-key argument.

Written by Horst Gutmann (https://github.com/zerok)
- Some alterations provided by Peadar Coyle (https://github.com/springcoil)
"""

from __future__ import print_function
Expand All @@ -30,11 +31,18 @@
import logging
import os

import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import requests
import seaborn as sns
import tablib

# Let's add in some of seaborn to this for better graphics
# Notice how we have set the palette colour to 'Purples_r'
# See the tutorial on http://nbviewer.ipython.org/github/mwaskom/seaborn/blob/master/examples/aesthetics.ipynb for more details
sns.set(palette="Purples_r")
mpl.rc("figure", figsize=(5, 5))

CPI_DATA_URL = 'http://research.stlouisfed.org/fred2/data/CPIAUCSL.txt'

Expand Down
5 changes: 5 additions & 0 deletions apis/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ numpy==1.7.0
matplotlib==1.2.0
requests==1.1.0
tablib==0.9.11
Pandas
SciPy
statsmodels==0.5.0
patsy
seaborn