Pymatgen XRD图

时间:2018-11-23 00:54:45

标签: pymatgen

我正在关注XRD绘图教程,并按照本教程中的说明进行了导入

from pymatgen import Lattice, Structure
from pymatgen.analysis.diffraction.xrd import XRDCalculator
from IPython.display import Image, display
%matplotlib inline

在定义了结构之后,我尝试使用这些命令将其绘制

c = XRDCalculator()
c.show_xrd_plot(structure)

但是我碰到了这个错误:'没有属性'show_xrd_plot'

AttributeError: 'XRDCalculator' object has no attribute 'show_xrd_plot'

我应该怎么做才能使其正常工作,非常感谢, 感恩节快乐

1 个答案:

答案 0 :(得分:1)

XRD tutorial of pymatgen已更新,并且xrd_show_plot更改为

c.show_plot(structure)
相关问题