Changeset 1025 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Aug 12, 2013 11:22:30 AM (9 years ago)
Author:
vondreele
Message:

fix excluded region problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1017 r1025  
    391391    '''
    392392    global HKL
    393 
    394 #    def OnKeyBox(event):
    395 #        if G2frame.G2plotNB.nb.GetSelection() == G2frame.G2plotNB.plotList.index('Powder Patterns'):
    396 #            event.key = cb.GetValue()[0]
    397 #            cb.SetValue(' key press')
    398 #            wx.CallAfter(OnPlotKeyPress,event)
    399 #                       
    400393    global exclLines
    401394    def OnPlotKeyPress(event):
     
    622615                else:
    623616                    data[id][id2] = xpos
     617                if id > 1 and data[id][0] > data[id][1]:
     618                        data[id].reverse()
    624619                G2frame.PatternTree.SetItemPyData(LimitId,data)
    625620                if G2frame.PatternTree.GetItemText(G2frame.PickId) == 'Limits':
     
    758753        ifpicked = False
    759754        LimitId = 0
    760         xye = ma.array(Pattern[1])
     755        xye = ma.array(ma.getdata(Pattern[1]))
    761756        if PickId:
    762757            ifpicked = Pattern[2] == G2frame.PatternTree.GetItemText(PatternId)
Note: See TracChangeset for help on using the changeset viewer.