Created
October 7, 2015 15:12
-
-
Save rakhuba/0968cc1749c7565ac5a1 to your computer and use it in GitHub Desktop.
This file contains 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 matplotlib.pyplot as plt | |
import seaborn as sns | |
import math | |
import matplotlib as mpl | |
from itertools import product | |
import scipy as sp | |
import scipy.interpolate | |
rc_cmufonts = { | |
"font.family": "normal", | |
"font.serif": [], | |
"font.sans-serif": [], | |
"font.monospace": [], | |
} | |
fs = 10 | |
font = {'size' : fs} | |
mpl.rc('font', **font) | |
mpl.rcParams.update(rc_cmufonts) | |
mpl.rcParams['text.usetex'] = True | |
import matplotlib.pyplot as plt | |
from IPython.kernel.zmq.pylab import backend_inline | |
cfg = backend_inline.InlineBackend.instance()# InlineBackendConfig.instance() | |
cfg.figure_format = 'svg' # 'png' to switch back | |
sns.set_context('paper', font_scale=1.5) | |
sns.set_style('white') | |
sns.mpl.rcParams['legend.frameon'] = 'False' | |
#sns.rcParams['legend.frameon'] = 'False' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment