使用Matplotlib导出论文出版图(单栏)的推荐设置

我使用python的matplotlib包画学术论文插图时的设置,使用此设置导出的图的尺寸适合双栏排版中的一栏,具体设置如下:

import matplotlib.pyplot as plt

config = {
    "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)
posted @ 2025-01-20 20:46  Ranger-boop  阅读(43)  评论(0)    收藏  举报