Changeset 2297 for trunk/GSASIIplot.py


Ignore:
Timestamp:
May 27, 2016 11:25:21 AM (6 years ago)
Author:
vondreele
Message:

implement creation of summed file from multi-frame ge image files; creates a G2img file which is put on tree in place of multi frame file. Subsequent accesses get teg G2img file.
Insert skipPageChange = True to prevent plot tab change causing tree change from Strain plots & Image plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2284 r2297  
    289289        if pid: self.G2frame.PatternTree.SelectItem(pid)
    290290        self.allowZoomReset = True
    291  #       print 'invoke',str(self).split('0x')[1]
     291#        print 'invoke',str(self).split('0x')[1],str(pid)
    292292           
    293293class GSASIItoolbar(Toolbar):
     
    26762676    Page.Choice = None
    26772677    G2frame.G2plotNB.RaisePageNoRefresh(Page)
     2678    G2frame.G2plotNB.skipPageChange = True      #to keep Stress/Strain data tab visible
    26782679    G2frame.G2plotNB.status.DestroyChildren()
    26792680    Plot.set_title('Strain')
     
    39493950                ypix = int(ypos*scaley)
    39503951                Int = 0
    3951                 if (0 <= xpix <= sizexy[0]) and (0 <= ypix <= sizexy[1]):
     3952                if (0 <= xpix < sizexy[0]) and (0 <= ypix < sizexy[1]):
    39523953                    Int = G2frame.ImageZ[ypix][xpix]
    39533954                tth,azm,D,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data)
     
    41114112            G2frame.StrainKey = ''
    41124113            G2imG.UpdateStressStrain(G2frame,StrSta)
    4113             PlotStrain(G2frame,StrSta)
    41144114            wx.CallAfter(PlotImage,G2frame,newPlot=False)           
    41154115        else:
     
    42364236    if not event:                       #event from GUI TextCtrl - don't want focus to change to plot!!!
    42374237        G2frame.G2plotNB.RaisePageNoRefresh(Page)
     4238    G2frame.G2plotNB.skipPageChange = True
    42384239    Title = G2frame.PatternTree.GetItemText(G2frame.Image)[4:]
    42394240    G2frame.G2plotNB.status.DestroyChildren()
Note: See TracChangeset for help on using the changeset viewer.