Changeset 4752


Ignore:
Timestamp:
Jan 9, 2021 8:55:00 AM (3 years ago)
Author:
vondreele
Message:

add scattering density to status bar when P/N are selected for prev/next atom

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4735 r4752  
    82748274            pI[1] %= len(atoms)
    82758275            Tx,Ty,Tz = atoms[pI[1]][cx:cx+3]
     8276            rho = G2mth.getRho([Tx,Ty,Tz],mapData)
    82768277            txt = ''
    82778278            SetSelectedAtoms(pI[1])
    82788279            drawingData['viewPoint'] = [np.array([Tx,Ty,Tz]),pI]
    82798280            SetViewPointText(drawingData['viewPoint'][0])
    8280             if ct: G2frame.G2plotNB.status.SetStatusText('View point at atom '+atoms[pI[1]][ct-1]+txt,1)
     8281            if ct:
     8282                line = 'View point at atom '+atoms[pI[1]][ct-1]+txt
     8283                if rho:
     8284                    line += ', density = %.2f'%rho
     8285                G2frame.G2plotNB.status.SetStatusText(line,1)
    82818286            NPkey = True
    82828287           
Note: See TracChangeset for help on using the changeset viewer.