import xrayutilities as xu import matplotlib.pyplot as plt GaAs = xu.materials.GaAs hGaAs = xu.HXRD( GaAs.Q( 1, 1, 0 ), GaAs.Q( 0, 0, 1 ) ) # GaAs の x=(1,1,-2), y=(1,1,1) 断面のプロットと ax, h = xu.materials.show_reciprocal_space_plane( GaAs, hGaAs ) InP = xu.materials.InP hInP = xu.HXRD( InP.Q( 1, 1, 0 ), InP.Q( 0, 0, 1 ) ) # GaTe の 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 で作った「図」が表示されない