Changeset 2311 for trunk/GSASIIplot.py
- Timestamp:
- Jun 7, 2016 2:30:49 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r2310 r2311 2430 2430 2431 2431 def PlotXY(G2frame,XY,XY2=None,labelX=None,labelY=None,newPlot=False, 2432 Title='',lines=False,names=[] ):2432 Title='',lines=False,names=[],names2=[]): 2433 2433 '''simple plot of xy data, used for diagnostic purposes 2434 2434 ''' … … 2480 2480 Page.Offset = [0,0] 2481 2481 2482 if len(XY2) > 1:2482 if XY2 and len(XY2) > 1: 2483 2483 Page.Choice = (' key press','l: offset left','r: offset right','d: offset down', 2484 2484 'u: offset up','o: reset offset',) … … 2505 2505 Ymax = max(Ymax,max(Y)) 2506 2506 if lines: 2507 Plot.plot(X,Y,colors[ixy%6],picker=False) 2507 if len(names): 2508 Plot.plot(X,Y,colors[ixy%6],picker=False,label=names[ixy]) 2509 else: 2510 Plot.plot(X,Y,colors[ixy%6],picker=False) 2508 2511 else: 2509 2512 Plot.plot(X,Y,colors[ixy%6]+'+',picker=False) 2510 if len(XY2):2513 if XY2 and len(XY2): 2511 2514 for ixy,xy in enumerate(XY2): 2512 2515 X,Y = XY2[ixy] 2513 2516 dX = Page.Offset[0]*(ixy+1)*Xmax/500. 2514 2517 dY = Page.Offset[1]*(ixy+1)*Ymax/100. 2515 if len(names ):2516 Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False,label=names [ixy])2518 if len(names2): 2519 Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False,label=names2[ixy]) 2517 2520 else: 2518 2521 Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False)
Note: See TracChangeset
for help on using the changeset viewer.