0

我正在关注 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'

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

4

1 回答 1

1

pymatgen的XRD教程更新,xrd_show_plot改为

c.show_plot(structure)
于 2018-11-23T17:55:08.927 回答