美文网首页
保存图片:尺寸+边距+标签

保存图片:尺寸+边距+标签

作者: LET149 | 来源:发表于2025-03-21 05:09 被阅读0次
ax = sns.scatterplot(data=kk, x='celltype', y='ADFCA')
ax.set_xticklabels(ax.get_xticklabels(), rotation=90)     '#调整图像 X 轴标签
ax.set_yscale('log')     #对 Y 轴进行 Log 处理

fig_used=plt.gcf()     #捕获图像
fig_used.set_size_inches(15,10)     #调整图像尺寸
plt.subplots_adjust(left=0.1, right=0.95, top=0.9, bottom=0.5)     #调整图像边距

fig_used.savefig('/path/Cell_proportion_of_ADFCA.pdf', format='pdf', dpi=300)

相关文章

网友评论

      本文标题:保存图片:尺寸+边距+标签

      本文链接:https://www.haomeiwen.com/subject/jpfymjtx.html