Changeset 4106 for trunk/GSASIIpwdGUI.py


Ignore:
Timestamp:
Aug 21, 2019 2:56:05 PM (2 years ago)
Author:
vondreele
Message:

fixes so plots are correct for SHAPES fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIpwdGUI.py

    r4103 r4106  
    56865686            shapeTable.SetValue(r,c,True)
    56875687            ShapesResult.ForceRefresh()
     5688            Limits = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.PatternId, 'Limits'))[1]
     5689            ProfDict,Profile = G2frame.GPXtree.GetItemPyData(G2frame.PatternId)[:2]
     5690            iBeg = np.searchsorted(Profile[0],Limits[0])
     5691            iFin = np.searchsorted(Profile[0],Limits[1])
     5692            pattern = Patterns[r]
     5693            Profile[3][iBeg:iFin+1] = np.array(pattern[2])
    56885694            selAtoms = Atoms[2*r+(c-1)]
    5689             pattern = Patterns[r]
    56905695            prCalc = PRcalc[r][2]
    56915696            prDelt= np.diff(PRcalc[r][0])[0]
     
    56965701            print('%s %.3f'%('selected r value',pattern[-1]))
    56975702            print('%s %.3f'%('selected Delta P(r)',PRcalc[r][-1]))
    5698             RefreshPlots(True)
     5703#            RefreshPlots(True)
     5704            G2plt.PlotPatterns(G2frame,plotType='SASD',newPlot=True)
    56995705            G2plt.PlotSASDPairDist(G2frame)
    57005706            G2plt.PlotBeadModel(G2frame,selAtoms,plotDefaults)
Note: See TracChangeset for help on using the changeset viewer.