Changeset 3353 for trunk/GSASIIplot.py


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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']:
Note: See TracChangeset for help on using the changeset viewer.