Changeset 248 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 17, 2011 1:33:02 PM (13 years ago)
Author:
vondreele
Message:

histogram2d.for - cleaned up
add azmthOff - as for a rotation of a 2D detector
fix image integration problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r245 r248  
    854854                    xpos = event.xdata-xcent
    855855                    ypos = event.ydata-ycent
     856                    tth,azm = G2img.GetTthAzm(event.xdata,event.ydata,Data)
    856857                    if 'line3' in  str(item) or 'line4' in str(item) and not Data['fullIntegrate']:
    857                         ang = int(atan2d(xpos,ypos))
    858                         Page.canvas.SetToolTipString('%6d deg'%(ang))
     858                        Page.canvas.SetToolTipString('%6d deg'%(azm))
    859859                    elif 'line1' in  str(item) or 'line2' in str(item):
    860                         tth = G2img.GetTth(event.xdata,event.ydata,Data)
    861860                        Page.canvas.SetToolTipString('%8.3fdeg'%(tth))                           
    862861            else:
     
    11021101        if Data['showLines']:
    11031102            LRAzim = Data['LRazimuth']                  #NB: integers
     1103            AzmthOff = Data['azmthOff']
    11041104            IOtth = Data['IOtth']
    11051105            wave = Data['wavelength']
     
    11111111                Azm = np.array(range(0,361))
    11121112            else:
    1113                 Azm = np.array(range(LRAzim[0],LRAzim[1]+1))
     1113                Azm = np.array(range(LRAzim[0],LRAzim[1]+1))-AzmthOff
    11141114            if ellI:
    11151115                xyI = []
Note: See TracChangeset for help on using the changeset viewer.