我遵循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'
我该怎么做才能让它发挥作用,提前感谢,感恩节快乐
发布于 2018-11-23 17:55:08
更新pymatgen的XRD教程并将其更改为xrd_show_plot。
c.show_plot(structure)
https://stackoverflow.com/questions/53439514
复制相似问题