Changeset 4807 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 9, 2021 10:29:39 AM (2 years ago)
Author:
vondreele
Message:

improvement to excluded region operation - now will immediately display (with 'x' option)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4806 r4807  
    32573257                BackLine = None
    32583258                DifLine = [None]
    3259                 if 'PWDR' in plottype and Page.plotStyle['exclude']:
    3260                     Emask = ma.getmask(ma.masked_less_equal(xye[3],0.))
     3259                if 'PWDR' in plottype and Page.plotStyle['exclude'] and len(limits[2:]):
     3260                    Emask = ma.getmask(X)
     3261                    excls = limits[2:]
     3262                    for excl in excls:
     3263                        Emask += ma.getmask(ma.masked_inside(xye[0],excl[0],excl[1],copy=False))
    32613264                    Xum = ma.array(Xum,mask=Emask)
    32623265                    X = ma.array(X,mask=Emask)
Note: See TracChangeset for help on using the changeset viewer.