Changeset 4470 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 8, 2020 10:02:59 AM (2 years ago)
Author:
vondreele
Message:

Add option to fade by 50% symmetry equivalent atoms, bonds, etc. in structure drawings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4469 r4470  
    89318931        cx,ct,cs,ci = drawingData['atomPtrs']
    89328932        bondR = drawingData['bondRadius']
     8933        SymFade = drawingData.get('SymFade',False)
    89338934        G,g = G2lat.cell2Gmat(cell)
    89348935        GS = G
     
    89808981                continue
    89818982            atColor = atmFade[iat]*np.array(CL)/255.
     8983            if SymFade and atom[cs-1] != '1':
     8984                atColor *= .5
    89828985            if drawingData['showRigidBodies'] and atom[ci] in rbAtmDict:
    89838986                bndColor = Or/255.
     
    90569059                if not SGData['SGGray'] and SpnFlp[OpNum] < 0:
    90579060                    color = Rd/255.
     9061                if SymFade and atom[cs-1] != '1':
     9062                    color *= .5
    90589063                RenderMoment(x,y,z,Moment,color)                   
    90599064
Note: See TracChangeset for help on using the changeset viewer.