{ "cells": [ { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "# %load jupyter_default.py\n", "import pandas as pd\n", "import numpy as np\n", "import os\n", "import re\n", "import datetime\n", "import time\n", "import glob\n", "from tqdm import tqdm_notebook\n", "from colorama import Fore, Style\n", "\n", "%matplotlib inline\n", "import matplotlib.pyplot as plt\n", "import matplotlib.colors\n", "import seaborn as sns\n", "\n", "%config InlineBackend.figure_format='retina'\n", "sns.set() # Revert to matplotlib defaults\n", "plt.rcParams['figure.figsize'] = (12, 8)\n", "plt.rcParams['legend.fancybox'] = True\n", "plt.style.use('fivethirtyeight')\n", "plt.rcParams['font.family'] = 'Marion'\n", "\n", "SMALL_SIZE, MEDIUM_SIZE, BIGGER_SIZE = 14, 16, 20\n", "plt.rc('font', size=SMALL_SIZE)\n", "plt.rc('axes', titlesize=SMALL_SIZE)\n", "plt.rc('axes', labelsize=MEDIUM_SIZE)\n", "plt.rc('xtick', labelsize=SMALL_SIZE)\n", "plt.rc('ytick', labelsize=SMALL_SIZE)\n", "plt.rc('legend', fontsize=MEDIUM_SIZE)\n", "plt.rc('axes', titlesize=BIGGER_SIZE)\n", "\n", "plt.rcParams['grid.alpha'] = 0.2\n", "plt.rcParams['axes.labelpad'] = 10\n", "plt.rcParams['axes.labelpad'] = 20\n", "plt.rcParams['axes.facecolor'] = 'white'\n", "plt.rcParams['figure.facecolor'] = 'white'\n", "plt.rcParams['savefig.facecolor'] = 'white'\n", "plt.rcParams['xtick.major.pad'] = 15\n", "plt.rcParams['xtick.minor.pad'] = 15\n", "plt.rcParams['ytick.major.pad'] = 10\n", "plt.rcParams['ytick.minor.pad'] = 10\n", "\n", "def savefig(name):\n", " plt.savefig(f'../../figures/{name}.png', bbox_inches='tight', dpi=300)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "application/json": { "Software versions": [ { "module": "Python", "version": "3.6.8 64bit [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]" }, { "module": "IPython", "version": "7.2.0" }, { "module": "OS", "version": "Darwin 18.7.0 x86_64 i386 64bit" }, { "module": "pandas", "version": "0.23.4" }, { "module": "numpy", "version": "1.15.4" } ] }, "text/html": [ "
Software | Version |
---|---|
Python | 3.6.8 64bit [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] |
IPython | 7.2.0 |
OS | Darwin 18.7.0 x86_64 i386 64bit |
pandas | 0.23.4 |
numpy | 1.15.4 |
Thu Jan 14 23:56:45 2021 EST |