Changeset 54 for trunk/GSASIIplot.py


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

pick, motion bugs fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r53 r54  
    248248            ypos = event.ydata
    249249            wave = self.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(self, \
    250             PatternId, 'Instrument Parameters'))[0][1]
     250                self.PatternId, 'Instrument Parameters'))[0][1]
    251251            dsp = 0.0
    252252            if abs(xpos) > 0.:
     
    381381        acolor = mpl.cm.get_cmap('Paired')
    382382        Plot.contourf(ContourX,ContourY,ContourZ,cmap=acolor)
    383 #        Plot.set_ylim(0,Nseq-1)
     383        Plot.set_ylim(0,Nseq-1)
     384        newPlot = True
    384385    else:
    385386        self.Lines = Lines
     
    825826            x,y = G2cmp.GetTthAzm(xring,yring,Data)
    826827            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')
    827833    if not newPlot:
    828834        Page.toolbar.push_current()
     
    889895            x,y = G2cmp.GetTthAzm(xring,yring,Data)
    890896            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')
    891902    if not newPlot:
    892903        Page.toolbar.push_current()
Note: See TracChangeset for help on using the changeset viewer.