Last active
May 13, 2018 23:54
-
-
Save yk-tanigawa/32a9300a633db6e72918707c368a78cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%matplotlib inline | |
import numpy as np | |
import pandas as pd | |
import matplotlib, collections, itertools, os, re, textwrap, logging | |
import matplotlib.pyplot as plt | |
import matplotlib.gridspec as gridspec | |
import matplotlib.patches as mpatches | |
from functools import reduce | |
from logging.config import dictConfig | |
from logging import getLogger | |
dictConfig(dict( | |
version = 1, | |
formatters = {'f': {'format': '%(asctime)s %(name)-12s %(levelname)-8s %(message)s'}}, | |
handlers = { | |
'h': {'class': 'logging.StreamHandler','formatter': 'f', | |
'level': logging.DEBUG}}, | |
root = {'handlers': ['h'], 'level': logging.DEBUG,}, | |
)) | |
matplotlib.rc('font',**{'size':16, 'family':'sans-serif','sans-serif':['HelveticaNeue', 'Helvetica']}) | |
logger = getLogger('notebook') | |
repo_dir=os.path.realpath( | |
os.path.join('..') | |
) | |
data_dir=os.path.realpath( | |
os.path.join(repo_dir, 'private_data', os.path.basename(os.path.realpath(os.getcwd()))) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment