Last active
August 10, 2016 10:02
-
-
Save raggleton/7e3adc712706b54d3fc9a4373b654e7b to your computer and use it in GitHub Desktop.
Usual stuff for jupyter notebooks
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
from copy import deepcopy | |
from contextlib import contextmanager | |
import pandas as pd | |
import numpy as np | |
import matplotlib as mpl | |
from matplotlib.pyplot import cm | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
from matplotlib.colors import LogNorm, Normalize | |
import matplotlib.gridspec as gridspec | |
from itertools import izip | |
from matplotlib.ticker import ScalarFormatter, FormatStrFormatter, MultipleLocator | |
from collections import namedtuple | |
from IPython.display import IFrame | |
import functools | |
%matplotlib inline | |
get_ipython().magic(u'load_ext autoreload') | |
get_ipython().magic(u'autoreload 2') | |
mpl.rcParams['font.size'] = 26 | |
mpl.rcParams['figure.figsize'] = (9.0, 6.0) # default size of plots | |
mpl.rcParams['axes.labelsize'] = 26 | |
mpl.rcParams['xtick.labelsize'] = 22 | |
mpl.rcParams['ytick.labelsize'] = 22 | |
mpl.rcParams['xtick.major.size'] = 12 | |
mpl.rcParams['xtick.major.width'] = 2 | |
mpl.rcParams['ytick.major.size'] = 12 | |
mpl.rcParams['ytick.major.width'] = 2 | |
mpl.rcParams['xtick.minor.size'] = 6 | |
mpl.rcParams['xtick.minor.width'] = 1 | |
mpl.rcParams['ytick.minor.size'] = 6 | |
mpl.rcParams['ytick.minor.width'] = 1 | |
mpl.rcParams['legend.framealpha'] = 0.9 | |
mpl.rcParams['legend.scatterpoints'] = 1 | |
mpl.rcParams['legend.numpoints'] = 1 | |
# mpl.rcParams.update({'font.size': 24, 'font.family': 'STIXGeneral', 'mathtext.fontset': 'stix'}) | |
mpl.rcParams.update({'font.family': 'STIXGeneral', 'mathtext.fontset': 'stix'}) | |
pd.set_option('display.max_colwidth', 120) | |
pd.set_option('display.max_columns', 200) | |
pd.set_option('display.max_rows', 500) | |
mpl.rcParams['xtick.major.pad'] = 8 | |
mpl.rcParams['ytick.major.pad'] = 8 |
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
import pandas as pd | |
import numpy as np | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import matplotlib.patches as patches | |
from itertools import izip | |
%matplotlib inline | |
get_ipython().magic(u'load_ext autoreload') | |
get_ipython().magic(u'autoreload 2') | |
get_ipython().magic(u"config InlineBackend.figure_formats = 'png', ") | |
mpl.rcParams['figure.figsize'] = (7.0, 4.0) # default size of plots | |
mpl.rcParams['axes.labelsize'] = 20 | |
mpl.rcParams['xtick.labelsize'] = 20 | |
mpl.rcParams['ytick.labelsize'] = 20 | |
mpl.rcParams['xtick.major.size'] = 10 | |
mpl.rcParams['ytick.major.size'] = 10 | |
mpl.rcParams['xtick.minor.size'] = 5 | |
mpl.rcParams['ytick.minor.size'] = 5 | |
mpl.rcParams['legend.framealpha'] = 0.8 | |
mpl.rcParams['legend.scatterpoints'] = 1 | |
# mpl.rcParams.update({'font.size': 24, 'font.family': 'STIXGeneral', 'mathtext.fontset': 'stix'}) | |
pd.set_option('display.max_colwidth', 120) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment