Changeset 1907
- Timestamp:
- Jun 24, 2015 12:23:55 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASII.py
r1902 r1907 3483 3483 dlg.Destroy() 3484 3484 return 3485 3486 3485 self.OnFileSave(event) 3487 3486 # check that constraints are OK here … … 3528 3527 self.PatternTree.DeleteChildren(self.root) 3529 3528 if self.HKL: self.HKL = [] 3530 if self.G2plotNB.plotList:3531 self.G2plotNB.clear()3529 # if self.G2plotNB.plotList: 3530 # self.G2plotNB.clear() 3532 3531 G2IO.ProjFileOpen(self) 3533 3532 item, cookie = self.PatternTree.GetFirstChild(self.root) -
trunk/GSASIIgrid.py
r1906 r1907 2849 2849 G2frame.PatternTree.SetItemPyData(item,data) 2850 2850 if kind in ['PWDR','SASD']: 2851 G2plt.PlotPatterns(G2frame,plotType=kind,newPlot=True) 2851 if 'xylim' in dir(G2frame): 2852 NewPlot = False 2853 else: 2854 2855 NewPlot = True 2856 G2plt.PlotPatterns(G2frame,plotType=kind,newPlot=NewPlot) 2852 2857 elif kind == 'HKLF': 2853 2858 Name = G2frame.PatternTree.GetItemText(item) -
trunk/GSASIIplot.py
r1898 r1907 1420 1420 plotNum = G2frame.G2plotNB.plotList.index('Powder Patterns') 1421 1421 Page = G2frame.G2plotNB.nb.GetPage(plotNum) 1422 if not newPlot: 1423 Plot = Page.figure.gca() #get previous powder plot & get limits 1424 xylim = Plot.get_xlim(),Plot.get_ylim() 1422 Plot = Page.figure.gca() #get previous powder plot & get limits 1423 G2frame.xylim = Plot.get_xlim(),Plot.get_ylim() 1425 1424 Page.figure.clf() 1426 1425 Plot = Page.figure.gca() #get a fresh plot after clf() … … 1870 1869 if not newPlot: 1871 1870 Page.toolbar.push_current() 1872 Plot.set_xlim( xylim[0])1873 Plot.set_ylim( xylim[1])1871 Plot.set_xlim(G2frame.xylim[0]) 1872 Plot.set_ylim(G2frame.xylim[1]) 1874 1873 # xylim = [] 1875 1874 Page.toolbar.push_current() 1876 1875 Page.toolbar.draw() 1877 1876 else: 1877 G2frame.xylim = Plot.get_xlim(),Plot.get_ylim() 1878 1878 Page.canvas.draw() 1879 1879 olderr = np.seterr(invalid='ignore') #ugh - this removes a matplotlib error for mouse clicks in log plots
Note: See TracChangeset
for help on using the changeset viewer.