|
不好意思,标签写反了,感谢指正。
HER就参考使用方法把对应的值替换一下即可,例如:
(1~37行,同上)
# HER1
delta_G1 = [-0.2, 0.2]
G1 = deltaG2G(delta_G1)
line1 = PlotFreeEnergy(G1, color='r')
# HER2
delta_G2 = [-0.1, 0.1]
G2 = deltaG2G(delta_G2)
line2 = PlotFreeEnergy(G2, color='b')
x = [2*i+0.5 for i in range(len(delta_G1)+1)]
print(x)
labels = ['*', r'*H', r'*']
plt.xlabel('Reaction Coordinate', fontsize=28)
plt.ylabel('Free Energy (eV)', fontsize=28)
plt.xticks(x, labels)
plt.legend([line1, line2], [r'HER1', r'HER2'], fontsize=24)
plt.show()
plt.savefig('Free energy diagram.png', dpi= 300, transparent=True)
|
|