Changeset 55 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 29, 2010 12:27:45 PM (13 years ago)
Author:
vondreel
Message:

3rd try - reduce meatrices in integration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r54 r55  
    550550                if (0 <= xpix <= size) and (0 <= ypix <= size):
    551551                    Page.canvas.SetToolTipString('%6d'%(self.ImageZ[ypix][xpix]))
    552                 tth,azm,dsp = G2cmp.GetTthDspAzm(xpos,ypos,Data)
     552                tth,azm,dsp = G2cmp.GetTthAzmDsp(xpos,ypos,Data)
    553553                Q = 2.*math.pi/dsp
    554554                self.G2plotNB.status.SetFields(\
     
    609609                            rings.remove(ring)                                                                       
    610610                else:
    611                     tth,azm,dsp = G2cmp.GetTthDspAzm(xpos,ypos,Data)
     611                    tth,azm,dsp = G2cmp.GetTthAzmDsp(xpos,ypos,Data)
    612612                    if 'Line2D' in str(self.itemPicked):
    613613                        if 'line1' in str(self.itemPicked):
     
    738738        if azm and tth:
    739739            self.G2plotNB.status.SetFields(\
    740                 ['Detector 2-th =%9.2fdeg, azm = %7.2fdeg'%(tth,azm),])
     740                ['Detector 2-th =%9.3fdeg, azm = %7.2fdeg'%(tth,azm),])
    741741                   
    742742    def OnPick(event):
     
    809809    Plot.set_xlabel('azimuth',fontsize=12)
    810810    Plot.set_ylabel('2-theta',fontsize=12)
    811     Plot.contour(self.TA[:,:,0],self.TA[:,:,1],self.TA[:,:,2],V,cmap=acolor)
     811    Plot.contour(self.TA[:,:,0],self.TA[:,:,1],image,V,cmap=acolor)
    812812    if Data['showLines']:
    813813        IOtth = Data['IOtth']
     
    826826            x,y = G2cmp.GetTthAzm(xring,yring,Data)
    827827            Plot.plot(y,x,'r+')           
    828     for ellipse in Data['ellipses']:
    829         ring = np.array(G2cmp.makeIdealRing(ellipse[:3])) #skip color
    830         x,y = np.hsplit(ring,2)
    831         tth,azm = G2cmp.GetTthAzm(x,y,Data)
    832         Plot.plot(azm,tth,'b')
     828        for ellipse in Data['ellipses']:
     829            ring = np.array(G2cmp.makeIdealRing(ellipse[:3])) #skip color
     830            x,y = np.hsplit(ring,2)
     831            tth,azm = G2cmp.GetTthAzm(x,y,Data)
     832            Plot.plot(azm,tth,'b,')
    833833    if not newPlot:
    834834        Page.toolbar.push_current()
     
    859859        if azm and tth:
    860860            self.G2plotNB.status.SetFields(\
    861                 ['Detector 2-th =%9.2fdeg, azm = %7.2fdeg'%(tth,azm),])
     861                ['Detector 2-th =%9.3fdeg, azm = %7.2fdeg'%(tth,azm),])
    862862                               
    863863    try:
     
    889889    Plot.set_xlabel('2-theta',fontsize=12)
    890890    Plot.imshow(image,cmap=acolor,vmin=Imin,vmax=Imax,interpolation='nearest', \
    891         extent=[ysc[0],ysc[-1],xsc[0],xsc[-1]],aspect='auto')
     891        extent=[ysc[0],ysc[-1],xsc[-1],xsc[0]],aspect='auto')
    892892    if Data['setRings']:
    893893        rings = np.concatenate((Data['rings']),axis=0)
     
    895895            x,y = G2cmp.GetTthAzm(xring,yring,Data)
    896896            Plot.plot(x,y,'r+')           
    897     for ellipse in Data['ellipses']:
    898         ring = np.array(G2cmp.makeIdealRing(ellipse[:3])) #skip color
    899         x,y = np.hsplit(ring,2)
    900         tth,azm = G2cmp.GetTthAzm(x,y,Data)
    901         Plot.plot(tth,azm,'b')
     897        for ellipse in Data['ellipses']:
     898            ring = np.array(G2cmp.makeIdealRing(ellipse[:3])) #skip color
     899            x,y = np.hsplit(ring,2)
     900            tth,azm = G2cmp.GetTthAzm(x,y,Data)
     901            Plot.plot(tth,azm,'b,')
    902902    if not newPlot:
    903903        Page.toolbar.push_current()
Note: See TracChangeset for help on using the changeset viewer.