用途:将科研数据转化为清晰、准确的出版级图表,适用于向 Nature、Science、Cell、PLOS 等期刊投稿,或改进已有图表以满足发表标准。
主要能力:提供期刊样式预设(如 assets/nature.mplstyle、style_presets.py 的 configure_for_journal)、多面板布局(GridSpec、FacetGrid)、误差棒与显著性标记、色盲友好配色(Okabe-Ito 调色板、viridis/plasma/cividis 等感知均匀色图)、字体与尺寸规范,以及按期刊要求导出(figure_export.py 的 save_publication_figure、save_for_journal、check_figure_size)。
使用方式:先应用出版样式,例如 from style_presets import apply_publication_style; apply_publication_style('default'),或 plt.style.use('assets/nature.mplstyle');再用 matplotlib/seaborn 绘图;最后用 save_publication_figure(fig, 'figure1', formats=['pdf', 'png'], dpi=300) 导出。seaborn 场景可配合 sns.set_theme(style='ticks', context='paper', font_scale=1.1) 与 sns.set_palette('colorblind')。
适用场景:折线图、箱线图、小提琴图、热图、相关矩阵、带置信带的时间序列、多面板组合图,以及按期刊列宽(如 Nature 单栏 89 mm、双栏 183 mm)调整尺寸。
限制:资料未提供具体安装命令、收费方式、平台支持范围与效果保证;部分脚本(style_presets.py、figure_export.py、color_palettes.py)需按资料中的导入路径使用,实际可用性取决于运行环境。