Changeset 2411 for trunk/GSASIIplot.py
- Timestamp:
- Aug 8, 2016 5:09:05 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2401 r2411 2438 2438 def PlotXY(G2frame,XY,XY2=None,labelX=None,labelY=None,newPlot=False, 2439 2439 Title='',lines=False,names=[],names2=[]): 2440 '''simple plot of xy data , used for diagnostic purposes2440 '''simple plot of xy data 2441 2441 ''' 2442 2442 def OnKeyPress(event): … … 2457 2457 #GSASIIpath.IPyBreak() 2458 2458 return 2459 wx.CallAfter(PlotXY,G2frame,XY,XY2,labelX,labelY,False,Title, False,names)2459 wx.CallAfter(PlotXY,G2frame,XY,XY2,labelX,labelY,False,Title,lines,names) 2460 2460 2461 2461 def OnMotion(event): … … 2487 2487 Page.Offset = [0,0] 2488 2488 2489 if XY2 and len(XY2) > 1:2489 if lines: 2490 2490 Page.Choice = (' key press','l: offset left','r: offset right','d: offset down', 2491 2491 'u: offset up','o: reset offset',) … … 2513 2513 Ymax = max(Ymax,max(Y)) 2514 2514 if lines: 2515 dX = Page.Offset[0]*(ixy+1)*Xmax/500. 2516 dY = Page.Offset[1]*(ixy+1)*Ymax/100. 2515 2517 if len(names): 2516 Plot.plot(X ,Y,colors[ixy%6],picker=False,label=names[ixy])2518 Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False,label=names[ixy]) 2517 2519 else: 2518 Plot.plot(X ,Y,colors[ixy%6],picker=False)2520 Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False) 2519 2521 else: 2520 2522 Plot.plot(X,Y,colors[ixy%6]+'+',picker=False) … … 2545 2547 2546 2548 def PlotXYZ(G2frame,XY,Z,labelX=None,labelY=None,newPlot=False,Title=''): 2547 '''simple contour plot of xyz data , used for diagnostic purposes2549 '''simple contour plot of xyz data 2548 2550 ''' 2549 2551 def OnKeyPress(event):
Note: See TracChangeset
for help on using the changeset viewer.