Changeset 2503


Ignore:
Timestamp:
Oct 24, 2016 4:29:35 PM (5 years ago)
Author:
vondreele
Message:

add radius (i.e. distance from center) to status line for images
reformat line to remove excess spaces.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2500 r2503  
    40674067                        Page.canvas.SetToolTipString('%8.3f deg'%(tth))                           
    40684068            else:
     4069                xcent,ycent = Data['center']
    40694070                xpos = event.xdata
    40704071                ypos = event.ydata
     4072                radius = np.sqrt((xpos-xcent)**2+(ypos-ycent)**2)
    40714073                xpix = int(xpos*scalex)
    40724074                ypix = int(ypos*scaley)
     
    40824084                else:
    40834085                     G2frame.G2plotNB.status.SetStatusText( \
    4084                         'Detector 2-th =%9.3fdeg, dsp =%9.3fA, Q = %6.5fA-1, azm = %7.2fdeg, I = %6d'%(tth,dsp,Q,azm,Int),1)
     4086                        'Detector radius=%.3fmm, 2-th =%.3fdeg, dsp=%.3fA, Q=%.5fA-1, azm %.2fdeg, I=%6d'%(radius,tth,dsp,Q,azm,Int),1)
    40854087
    40864088    def OnImPlotKeyPress(event):
Note: See TracChangeset for help on using the changeset viewer.