Changeset 2242 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
May 6, 2016 1:57:25 PM (7 years ago)
Author:
vondreele
Message:

change default stack inst to Gaussian
provide labels for plots of sequential stacking fault calcs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2237 r2242  
    25272527        def OnSeqPlot(event):
    25282528            seqPlot.SetValue(False)
    2529             resultXY,resultXY2 = Layers['seqResults']
     2529            resultXY,resultXY2,seqNames = Layers['seqResults']
    25302530            pName = Layers['seqCodes'][0]
    25312531            G2plt.PlotXY(G2frame,resultXY,XY2=resultXY2,labelX=r'$\mathsf{2\theta}$',
    2532             labelY='Intensity',newPlot=True,Title='Sequential simulations on '+pName,lines=False)
     2532                labelY='Intensity',newPlot=True,Title='Sequential simulations on '+pName,
     2533                lines=False,names=seqNames)
    25332534           
    25342535        def CellSizer():
     
    32213222        profile = np.copy(G2frame.PatternTree.GetItemPyData(G2frame.PatternId)[1])
    32223223        resultXY2 = []
    3223         resultXY = [np.vstack((profile[0],profile[1])),]
     3224        resultXY = [np.vstack((profile[0],profile[1])),]    #observed data
    32243225        data['Layers']['selInst'] = simCodes[1]
    32253226        data['Layers']['seqCodes'] = simCodes[2:]
     
    32313232        dStep = (BegFin[1]-BegFin[0])/nSteps
    32323233        vals = np.linspace(BegFin[0],BegFin[1],nSteps+1,True)
     3234        simNames = []
    32333235        for val in vals:
    32343236            print ' Stacking simulation step for '+pName+' = %.5f'%(val)
     3237            simNames.append('%.3f'%(val))
    32353238            if 'cell' in pName:
    32363239                cellId = cellSel.index(pName)
     
    32633266            G2pwd.CalcStackingPWDR(Layers,scale,background,limits,inst,profile,False)
    32643267            resultXY2.append([np.vstack((profile[0],profile[3])),][0])
    3265         data['Layers']['seqResults'] = [resultXY,resultXY2]
     3268        data['Layers']['seqResults'] = [resultXY,resultXY2,simNames]
    32663269        wx.MessageBox('Sequential simulation finished',caption='Stacking fault simulation',style=wx.ICON_EXCLAMATION)
    32673270        wx.CallAfter(UpdateLayerData)
Note: See TracChangeset for help on using the changeset viewer.