# 逆格子空間内でのブラッグ点の表示 # X線のエネルギーが何も書かれていないが、デフォルトで Cu Ka1 になってるはず。 import xrayutilities as xu import matplotlib.pyplot as plt GaAs = xu.materials.GaAs hGaAs = xu.HXRD( GaAs.Q( 1, 0, 0 ), GaAs.Q( 0, 0, 1 ) ) # GaAs の x=(1,0,0), y=(0,0,1) 断面のプロットと ax, h = xu.materials.show_reciprocal_space_plane( GaAs, hGaAs ) InP = xu.materials.InP hInP = xu.HXRD( InP.Q( 1, 0, 0 ), InP.Q( 0, 0, 1 ) ) # InP の x=(1,0,0), y=(0,0,1) 断面のプロットを重ねている ax, h = xu.materials.show_reciprocal_space_plane( InP, hInP, ax=ax ) plt.show() # これがないと show_reciprocal_space_plane で作った「図」が表示されない