Changeset 239 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jan 13, 2011 1:34:07 PM (15 years ago)
Author:
vondreele
Message:

add 'any image file' to image file menu
add calibration skip & dmin to image data dictionary
fix to ellipse fitting
fix Pilatus reading - OK for 100K, not sure for 2M
now a image sizexy - 2 items for x & y sizes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIplot.py

    r231 r239  
    837837            G2gd.GetPatternTreeItemId(self,self.Image, 'Image Controls'))
    838838        Page.canvas.SetToolTipString('')
    839         size = len(self.ImageZ)
     839        sizexy = Data['size']
    840840        if event.xdata and event.ydata:                 #avoid out of frame errors
    841841            Page.canvas.SetCursor(wx.CROSS_CURSOR)
     
    863863                ypix = ypos*scaley
    864864                Int = 0
    865                 if (0 <= xpix <= size) and (0 <= ypix <= size):
     865                if (0 <= xpix <= sizexy[0]) and (0 <= ypix <= sizexy[1]):
    866866                    Int = self.ImageZ[ypix][xpix]
    867867                tth,azm,dsp = G2img.GetTthAzmDsp(xpos,ypos,Data)
     
    947947        pixLimit = Data['pixLimit']
    948948        if self.itemPicked is None and PickName == 'Image Controls':
    949             size = len(self.ImageZ)
     949#            sizexy = Data['size']
    950950            Xpos = event.xdata
    951951            if not (Xpos and self.ifGetRing):                   #got point out of frame
     
    10811081    if len(self.ImageZ) > 1024:
    10821082        imScale = len(self.ImageZ)/1024
     1083    sizexy = Data['size']
    10831084    pixelSize = Data['pixelSize']
     1085#    print sizexy,pixelSize,len(self.ImageZ),len(self.ImageZ[0])
    10841086    scalex = 1000./pixelSize[0]
    10851087    scaley = 1000./pixelSize[1]
    1086     xmax = len(self.ImageZ)
    1087     Xmax = len(self.ImageZ)*pixelSize[0]/1000.
     1088    Xmax = sizexy[0]*pixelSize[0]/1000.
     1089    Ymax = sizexy[1]*pixelSize[1]/1000.
    10881090    xlim = (-0.5,Xmax-.5)
    1089     ylim = (Xmax-.5,-0.5,)
     1091    ylim = (Ymax-.5,-0.5,)
    10901092    Imin,Imax = Data['range'][1]
    10911093    acolor = mpl.cm.get_cmap(Data['color'])
Note: See TracChangeset for help on using the changeset viewer.