@@ -8199,13 +8199,14 @@ def OnErrorAnalysis(event):
81998199 '''Plots an "Abrams" plot - sorted delta/sig across data set.
82008200 Should be straight line of slope 1 - never is'''
82018201 def OnPlotFoFcVsFc (kind ):
8202- ''' Extinction check, plots Fo-Fc & 1/ExtC vs Fc for single crystal data '''
8203- iFo ,iFc ,iExt = 8 , 9 ,11
8202+ ''' Extinction check, plots Fo-Fc & 1/ExtC vs Fo for single crystal data '''
8203+ iFo ,iFc ,iExt = 5 , 7 ,11
82048204 refList = data [1 ]['RefList' ]
8205- XY = np .array ([xy [iFo + Super :1 + iFc + Super ] for xy in refList if xy [3 + Super ]> 0 ])
8206- XE = np .array ([[np .sqrt (xy [iFc + Super ]),1. / xy [iExt + Super ]] for xy in refList if xy [3 + Super ]> 0 ]).T
8205+ XY = np .array ([[xy [iFo + Super ],xy [iFo + Super ]- xy [iFc + Super ]] for xy in refList if xy [3 + Super ]> 0 ])
82078206 XY = np .sqrt (np .abs (XY )).T
8208- G2plt .PlotXY (G2frame ,[[XY [1 ],XY [0 ]- XY [1 ]],],XY2 = [XE ,],labelX = '|Fc|' ,labelY = '|Fo|-|Fc|, 1/ExtC' ,newPlot = False ,
8207+ XE = [[xy [iFo + Super ],xy [iExt + Super ]] for xy in refList if xy [3 + Super ]> 0 ]
8208+ XE = np .array ([[np .sqrt (xe [0 ]),1. / xe [1 ]] for xe in XE ]).T
8209+ G2plt .PlotXY (G2frame ,[[XY [0 ],XY [0 ]- XY [1 ]],],XY2 = [XE ,],labelX = '|Fo|' ,labelY = '|Fo|-|Fc|, 1/ExtC' ,newPlot = False ,
82098210 Title = 'Extinction check' ,lines = False ,points2 = True ,names = ['|Fo|-|Fc|' ,],names2 = ['1/ExtC' ,])
82108211 G2plt .PlotDeltSig (G2frame ,kind )
82118212 if kind in ['HKLF' ,]:
0 commit comments