Changeset 3353


Ignore:
Timestamp:
Apr 20, 2018 2:08:08 PM (5 years ago)
Author:
vondreele
Message:

remove call to paint after selecting all atoms. (paint cleared selection!)
fix perspective issue in powder waterfall plots

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3336 r3353  
    24162416                for row in range(Atoms.GetNumberRows()):
    24172417                    Atoms.SelectRow(row,True)                   
    2418                 wx.CallAfter(Paint)
    24192418                return
    24202419            if r < 0:                          #double click on col label! Change all atoms!
  • trunk/GSASIIplot.py

    r3352 r3353  
    24532453            SampleList.append(G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,
    24542454                id, 'Sample Parameters')))
     2455        if not G2frame.Contour:
     2456            PlotList.reverse()
     2457            ParmList.reverse()
     2458            SampleList.reverse()
    24552459    lenX = 0
    24562460    Ymax = None
     
    25202524        ContourY = []
    25212525        Nseq = 0
     2526    Nmax = len(PlotList)-1
    25222527    for N,Pattern in enumerate(PlotList):
    25232528        Parms = ParmList[N]
     
    25252530        ifpicked = False
    25262531        LimitId = 0
     2532        NoffY = offsetY*(Nmax-N)
    25272533        if Pattern[1] is None: continue # skip over uncomputed simulations
    25282534        xye = np.array(ma.getdata(Pattern[1])) # strips mask
     
    26062612            elif 'PWDR' in plottype and G2frame.SinglePlot and not (
    26072613                G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour):
    2608                 Y = xye[1]*multArray+bxye+offsetY*N*Ymax/100.0
     2614                Y = xye[1]*multArray+bxye+NoffY*Ymax/100.0
    26092615            else:
    2610                 Y = xye[1]+bxye+offsetY*N*Ymax/100.0
     2616                Y = xye[1]+bxye+NoffY*Ymax/100.0
    26112617        elif plottype in ['SASD','REFD']:
    26122618            if plottype == 'SASD':
     
    26152621                B = np.zeros_like(xye[5])
    26162622            if G2frame.plotStyle['sqPlot']:
    2617                 Y = xye[1]*Sample['Scale'][0]*(1.05)**(offsetY*N)*X**4
     2623                Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY*X**4
    26182624            else:
    2619                 Y = xye[1]*Sample['Scale'][0]*(1.05)**(offsetY*N)
     2625                Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY
    26202626        if LimitId and ifpicked:
    26212627            limits = np.array(G2frame.GPXtree.GetItemPyData(LimitId))
     
    26612667                    if 'PWDR' in plottype and G2frame.SinglePlot and not (
    26622668                        G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour):
    2663                         Z = xye[3]*multArray+offsetY*N*Ymax/100.0
     2669                        Z = xye[3]*multArray+NoffY*Ymax/100.0
    26642670                    else:
    2665                         Z = xye[3]+offsetY*N*Ymax/100.0
     2671                        Z = xye[3]+NoffY*Ymax/100.0
    26662672                if 'PWDR' in plottype:
    26672673                    if G2frame.plotStyle['sqrtPlot']:
     
    26722678                    elif 'PWDR' in plottype and G2frame.SinglePlot and not (
    26732679                        G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour):
    2674                         W = xye[4]*multArray+offsetY*N*Ymax/100.0
     2680                        W = xye[4]*multArray+NoffY*Ymax/100.0
    26752681                        D = multArray*xye[5]-Pattern[0]['delOffset']  #powder background
    26762682                    else:
    2677                         W = xye[4]+offsetY*N*Ymax/100.0
     2683                        W = xye[4]+NoffY*Ymax/100.0
    26782684                        D = xye[5]-Pattern[0]['delOffset']  #powder background
    26792685                elif plottype in ['SASD','REFD']:
  • trunk/GSASIIstrMath.py

    r3346 r3353  
    10901090    mSize = len(Mdata)
    10911091    Mag = np.sqrt(np.array([np.inner(mag,np.inner(mag,GS)) for mag in Gdata.T]))
    1092     dGdM = np.repeat(Gdata[:,nxs,:],Nops,axis=1)
     1092    dGdM = np.array([np.inner(mag,GS) for mag in Gdata.T]).T/Mag
    10931093   
    10941094    Gdata = np.inner(Gdata.T,SGMT).T            #apply sym. ops.
     
    11581158#        dqmx2 = np.sum(dqmx,axis=1)   #matrix * vector = vector
    11591159#        dqmx1 = np.swapaxes(np.swapaxes(np.inner(dqdm.T,dGdm.T),0,1),2,3)
    1160         dmx = (NQ*Q*dGdM[:,nxs,:,:])/Mag        #just use dpdM term & ignore dqdM term(small)
     1160        dmx = (NQ*Q*dGdM[:,nxs,nxs,:])        #just use dpdM term & ignore dqdM term(small)
    11611161#        dmx = (NQ*Q*dGdM[:,nxs,:,:]-Q*dqmx2)/Mag
    11621162       
Note: See TracChangeset for help on using the changeset viewer.