如何在python中调整eps图的大小

问题描述

我写了这段代码

fig,(ax1,ax2,ax3 ) =  plt.subplots(1,3,sharex=False,sharey= False,figsize=(18,10),gridspec_kw=dict( wspace=0.5))
ax1.barh(...)
ax2.barh(..)
ax3.barh(...)

plt.savefig('C:/Users/User/Desktop/graphs_eps/unidades.eps',format='eps',dpi=300,bBox_inches='tight',optimize=True)

但是当我看到情节时,它的大小与我保存为 png 文件时的大小不同。

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)