def mpl_span_columns(usetex=False):
"""
Set matplotlib to make pretty plots for publishing a full-page figure
"""
plt.rcdefaults()
plt.rc('font', family='serif', size=12.0, style='normal')
plt.rc('figure', figsize=(7, 5.25))
plt.rc('axes', titlesize=12, labelsize=10)
plt.rc('legend', fontsize=8, numpoints=1, scatterpoints=1)
plt.rc('xtick', labelsize='x-small')
plt.rc('ytick', labelsize='x-small')
plt.rc('text', usetex=usetex)
plt.rc('savefig', format='pdf', bbox='tight')
评论列表
文章目录