Changeset 809


Ignore:
Timestamp:
Dec 5, 2012 1:12:19 PM (10 years ago)
Author:
vondreele
Message:

apply zero point to plot x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r808 r809  
    702702            Id = G2gd.GetPatternTreeItemId(G2frame,G2frame.root, Pattern[2])
    703703            if 'C' in Parms['Type'][0]:
    704                 X = 4*np.pi*npsind(xye[0]/2.0)/wave
     704                X = 4*np.pi*npsind((xye[0]-Parms['Zero'][1])/2.0)/wave
    705705            else:
    706                 X = 2*np.pi*Parms['difC'][1]/xye[0]
     706                X = 2*np.pi*Parms['difC'][1]/(xye[0]-Parms['Zero'][1])
    707707        else:
    708             X = xye[0]
     708            X = xye[0]-Parms['Zero'][1]
    709709        if not lenX:
    710710            lenX = len(X)           
Note: See TracChangeset for help on using the changeset viewer.