Changeset 939 for trunk/GSASIIplot.py
- Timestamp:
- Jun 2, 2013 11:07:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r936 r939 1 1 # -*- coding: utf-8 -*- 2 #GSASII plotting routines 2 ''' 3 *GSASIIplot: plotting routines* 4 =============================== 5 6 ''' 3 7 ########### SVN repository information ################### 4 8 # $Date$ … … 60 64 61 65 class G2PlotMpl(wx.Panel): 66 'needs a doc string' 62 67 def __init__(self,parent,id=-1,dpi=None,**kwargs): 63 68 wx.Panel.__init__(self,parent,id=id,**kwargs) … … 75 80 76 81 class G2PlotOgl(wx.Panel): 82 'needs a doc string' 77 83 def __init__(self,parent,id=-1,dpi=None,**kwargs): 78 84 self.figure = wx.Panel.__init__(self,parent,id=id,**kwargs) … … 88 94 89 95 class G2Plot3D(wx.Panel): 96 'needs a doc string' 90 97 def __init__(self,parent,id=-1,dpi=None,**kwargs): 91 98 wx.Panel.__init__(self,parent,id=id,**kwargs) … … 102 109 103 110 class G2PlotNoteBook(wx.Panel): 111 'create a tabbed window for plotting' 104 112 def __init__(self,parent,id=-1): 105 113 wx.Panel.__init__(self,parent,id=id) … … 118 126 119 127 def addMpl(self,name=""): 128 'Add a tabbed page with a matplotlib plot' 120 129 page = G2PlotMpl(self.nb) 121 130 self.nb.AddPage(page,name) … … 126 135 127 136 def add3D(self,name=""): 137 'Add a tabbed page with a 3D plot' 128 138 page = G2Plot3D(self.nb) 129 139 self.nb.AddPage(page,name) … … 134 144 135 145 def addOgl(self,name=""): 146 'Add a tabbed page with an openGL plot' 136 147 page = G2PlotOgl(self.nb) 137 148 self.nb.AddPage(page,name) … … 142 153 143 154 def Delete(self,name): 155 'delete a tabbed page' 144 156 try: 145 157 item = self.plotList.index(name) … … 150 162 151 163 def clear(self): 164 'clear all pages from plot window' 152 165 while self.nb.GetPageCount(): 153 166 self.nb.DeletePage(0) … … 156 169 157 170 def Rename(self,oldName,newName): 171 'rename a tab' 158 172 try: 159 173 item = self.plotList.index(oldName) … … 163 177 return 164 178 165 def OnPageChanged(self,event): 179 def OnPageChanged(self,event): 180 'respond to someone pressing a tab on the plot window' 166 181 if self.plotList: 167 182 self.status.SetStatusText('Better to select this from GSAS-II data tree',1) … … 169 184 170 185 class GSASIItoolbar(Toolbar): 186 'needs a doc string' 171 187 ON_MPL_HELP = wx.NewId() 172 188 ON_MPL_KEY = wx.NewId() … … 183 199 wx.EVT_TOOL(self,self.ON_MPL_HELP,self.OnHelp) 184 200 def OnHelp(self,event): 201 'needs a doc string' 185 202 Page = self.GetParent().GetParent() 186 203 pageNo = Page.GetSelection() … … 189 206 G2gd.ShowHelp(bookmark,self.TopLevelParent) 190 207 def OnKey(self,event): 208 'needs a doc string' 191 209 parent = self.GetParent() 192 210 if parent.Choice: … … 857 875 858 876 def PlotDeltSig(G2frame,kind): 877 'needs a doc string' 859 878 try: 860 879 plotNum = G2frame.G2plotNB.plotList.index('Error analysis') … … 1703 1722 1704 1723 def PlotCovariance(G2frame,Data): 1724 'needs a doc string' 1705 1725 if not Data: 1706 1726 print 'No covariance matrix available' … … 1788 1808 1789 1809 def PlotTorsion(G2frame,phaseName,Torsion,TorName,Names=[],Angles=[],Coeff=[]): 1810 'needs a doc string' 1790 1811 1791 1812 global names … … 1845 1866 1846 1867 def PlotRama(G2frame,phaseName,Rama,RamaName,Names=[],PhiPsi=[],Coeff=[]): 1868 'needs a doc string' 1847 1869 1848 1870 global names … … 1940 1962 1941 1963 def PlotSeq(G2frame,SeqData,SeqSig,SeqNames,sampleParm): 1964 'needs a doc string' 1942 1965 1943 1966 def OnKeyPress(event):
Note: See TracChangeset
for help on using the changeset viewer.