我使用python的matplotlib包画学术论文插图时的设置,使用此设置导出的图的尺寸适合双栏排版中的一栏,具体设置如下:
import matplotlib.pyplot as pltconfig = {"font.family": "serif","font.size": 11,"mathtext.fontset": "stix","font.serif": ["Times New Roman"],"xtick.direction": "in","ytick.direction": "in",
}
plt.rcParams.update(config)inch2cm = 2.54
fig = plt.figure(figsize=(8/inch2cm, 6/inch2cm))
ax = fig.subplots(1, 1)