Changeset 3353 for trunk/GSASIIplot.py
- Timestamp:
- Apr 20, 2018 2:08:08 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r3352 r3353 2453 2453 SampleList.append(G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame, 2454 2454 id, 'Sample Parameters'))) 2455 if not G2frame.Contour: 2456 PlotList.reverse() 2457 ParmList.reverse() 2458 SampleList.reverse() 2455 2459 lenX = 0 2456 2460 Ymax = None … … 2520 2524 ContourY = [] 2521 2525 Nseq = 0 2526 Nmax = len(PlotList)-1 2522 2527 for N,Pattern in enumerate(PlotList): 2523 2528 Parms = ParmList[N] … … 2525 2530 ifpicked = False 2526 2531 LimitId = 0 2532 NoffY = offsetY*(Nmax-N) 2527 2533 if Pattern[1] is None: continue # skip over uncomputed simulations 2528 2534 xye = np.array(ma.getdata(Pattern[1])) # strips mask … … 2606 2612 elif 'PWDR' in plottype and G2frame.SinglePlot and not ( 2607 2613 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2608 Y = xye[1]*multArray+bxye+ offsetY*N*Ymax/100.02614 Y = xye[1]*multArray+bxye+NoffY*Ymax/100.0 2609 2615 else: 2610 Y = xye[1]+bxye+ offsetY*N*Ymax/100.02616 Y = xye[1]+bxye+NoffY*Ymax/100.0 2611 2617 elif plottype in ['SASD','REFD']: 2612 2618 if plottype == 'SASD': … … 2615 2621 B = np.zeros_like(xye[5]) 2616 2622 if G2frame.plotStyle['sqPlot']: 2617 Y = xye[1]*Sample['Scale'][0]*(1.05)** (offsetY*N)*X**42623 Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY*X**4 2618 2624 else: 2619 Y = xye[1]*Sample['Scale'][0]*(1.05)** (offsetY*N)2625 Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY 2620 2626 if LimitId and ifpicked: 2621 2627 limits = np.array(G2frame.GPXtree.GetItemPyData(LimitId)) … … 2661 2667 if 'PWDR' in plottype and G2frame.SinglePlot and not ( 2662 2668 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2663 Z = xye[3]*multArray+ offsetY*N*Ymax/100.02669 Z = xye[3]*multArray+NoffY*Ymax/100.0 2664 2670 else: 2665 Z = xye[3]+ offsetY*N*Ymax/100.02671 Z = xye[3]+NoffY*Ymax/100.0 2666 2672 if 'PWDR' in plottype: 2667 2673 if G2frame.plotStyle['sqrtPlot']: … … 2672 2678 elif 'PWDR' in plottype and G2frame.SinglePlot and not ( 2673 2679 G2frame.logPlot or G2frame.plotStyle['sqrtPlot'] or G2frame.Contour): 2674 W = xye[4]*multArray+ offsetY*N*Ymax/100.02680 W = xye[4]*multArray+NoffY*Ymax/100.0 2675 2681 D = multArray*xye[5]-Pattern[0]['delOffset'] #powder background 2676 2682 else: 2677 W = xye[4]+ offsetY*N*Ymax/100.02683 W = xye[4]+NoffY*Ymax/100.0 2678 2684 D = xye[5]-Pattern[0]['delOffset'] #powder background 2679 2685 elif plottype in ['SASD','REFD']:
Note: See TracChangeset
for help on using the changeset viewer.