def mpl_slides(usetex=False):
"""
Set matplotlibrc to make pretty slides
"""
plt.rcdefaults()
plt.rc('font', family='serif', size=24)
# The default PowerPoint page setup
plt.rc('figure', figsize=(7,5.5))
plt.rc('axes', titlesize=24, labelsize=20, linewidth=3)
plt.rc('legend', fontsize=18, numpoints=1, scatterpoints=1)
plt.rc('xtick', labelsize='small')
plt.rc('ytick', labelsize='small')
plt.rc('text', usetex=usetex)
plt.rc('lines', linewidth=5)
plt.rc('savefig', format='pdf', bbox='tight')
评论列表
文章目录