set_plot_params.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:matplotlib_pubplots 作者: yoachim 项目源码 文件源码
def mpl_single_column(usetex=False):
    """
    Set matplotlib to make pretty plots for publishing in 2-column
    """
    plt.rcdefaults()
    plt.rc('font', family='serif', size=12.0, style='normal')
    plt.rc('figure', figsize=(4,3))
    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')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号