Skip to content

Instantly share code, notes, and snippets.

@rakhuba
Created October 7, 2015 15:12
Show Gist options
  • Save rakhuba/0968cc1749c7565ac5a1 to your computer and use it in GitHub Desktop.
Save rakhuba/0968cc1749c7565ac5a1 to your computer and use it in GitHub Desktop.
%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