1234567891011121314151617181920212223242526272829303132333435 |
-
-
- import matplotlib
- from matplotlib import rc
-
- matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{timet,amsmath,amssymb}"]
- rc('font',**{'family':'serif','serif':['timet']})
- rc('font',**{'size':8})
- rc('text', usetex=True)
-
-
-
-
-
- def pc2in(pc):
- return pc*12/72.27
-
- import numpy as np
- light_grey = np.array([float(248)/float(255)]*3)
-
- def fixLeg(legend):
- rect = legend.get_frame()
-
- rect.set_facecolor(light_grey)
- rect.set_linewidth(0.0)
- rect.set_alpha(0.5)
-
- def deSpine(ax1):
- spines_to_remove = ['top', 'right']
- for spine in spines_to_remove:
- ax1.spines[spine].set_visible(False)
-
-
- ax1.get_xaxis().tick_bottom()
- ax1.get_yaxis().tick_left()
|