diff --git a/apis/platform_pricing.py b/apis/platform_pricing.py index 24ff999d..f1cfcd7c 100644 --- a/apis/platform_pricing.py +++ b/apis/platform_pricing.py @@ -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 @@ -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' diff --git a/apis/requirements.txt b/apis/requirements.txt index b0670b32..3aca130a 100644 --- a/apis/requirements.txt +++ b/apis/requirements.txt @@ -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