Changeset 399 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Oct 25, 2011 4:53:33 PM (10 years ago)
Author:
vondreele
Message:

Implement sequential refinement
remove print "load" & "save" for each item in Tree
revise application of azimuth offset - azimuths are now all "true" with correction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r396 r399  
    14331433    Plot.set_ylabel('Variable name')
    14341434    Page.canvas.draw()
    1435 
     1435   
     1436def PlotSeq(self,SeqData,SeqNames):
     1437   
     1438    try:
     1439        plotNum = self.G2plotNB.plotList.index('Sequential refinement')
     1440        Page = self.G2plotNB.nb.GetPage(plotNum)
     1441        Page.figure.clf()
     1442        Plot = Page.figure.gca()
     1443        if not Page.IsShown():
     1444            Page.Show()
     1445    except ValueError:
     1446        Plot = self.G2plotNB.addMpl('Sequential refinement').gca()
     1447        plotNum = self.G2plotNB.plotList.index('Sequential refinement')
     1448        Page = self.G2plotNB.nb.GetPage(plotNum)
     1449       
     1450    Page.SetFocus()
     1451    self.G2plotNB.status.SetFields(['',''])
     1452    if len(SeqData):   
     1453        X = np.arange(0,len(SeqData[0]),1)
     1454        for Y,name in zip(SeqData,SeqNames):
     1455            Plot.plot(X,Y,label=name)       
     1456        Plot.legend(loc='best')
     1457        Page.canvas.draw()
    14361458           
    14371459def PlotExposedImage(self,newPlot=False,event=None):
     
    18111833                Plot.plot([arcxI[-1],arcxO[-1]],[arcyI[-1],arcyO[-1]],picker=3)
    18121834            for i in range(Nazm):
    1813                 cake = LRAzim[0]+i*delAzm
     1835                cake = LRAzim[0]+i*delAzm-AzmthOff
    18141836                ind = np.searchsorted(Azm,cake)
    18151837                Plot.plot([arcxI[ind],arcxO[ind]],[arcyI[ind],arcyO[ind]],color='k',dashes=(5,5))
Note: See TracChangeset for help on using the changeset viewer.