- Timestamp:
- Jan 25, 2019 2:34:25 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIplot.py ¶
r3794 r3798 1233 1233 Page.Offset = [0,0] 1234 1234 1235 Page.Choice = (' key press',' f: toggle Fhkl/F^2hkl plot','q: toggle q/d plot')1235 Page.Choice = (' key press','g: toggle grid','f: toggle Fhkl/F^2hkl plot','q: toggle q/d plot') 1236 1236 Draw() 1237 1237 … … 1883 1883 elif Page.plotStyle['Offset'][0] > -100.: 1884 1884 Page.plotStyle['Offset'][0] -= 10. 1885 elif event.key == 'g': 1886 mpl.rcParams['axes.grid'] = not mpl.rcParams['axes.grid'] 1885 1887 elif event.key == 'l' and not G2frame.SinglePlot: 1886 1888 Page.plotStyle['Offset'][1] -= 1. … … 2559 2561 DifLine = [''] 2560 2562 if G2frame.Contour: 2561 Page.Choice = (' key press','d: lower contour max','u: raise contour max','o: reset contour max', 2563 Page.Choice = (' key press','d: lower contour max','u: raise contour max','o: reset contour max','g: toggle grid', 2562 2564 'i: interpolation method','s: color scheme','c: contour off','t: temperature for y-axis') 2563 2565 else: … … 2565 2567 if 'PWDR' in plottype: 2566 2568 if G2frame.SinglePlot: 2567 Page.Choice = (' key press','n: log(I) off', 2569 Page.Choice = (' key press','n: log(I) off','g: toggle grid', 2568 2570 'c: contour on','q: toggle q plot','t: toggle d-spacing plot', 2569 2571 'm: toggle multidata plot','+: toggle selection') 2570 2572 else: 2571 Page.Choice = (' key press','n: log(I) off', 2573 Page.Choice = (' key press','n: log(I) off','g: toggle grid', 2572 2574 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 2573 2575 'c: contour on','q: toggle q plot','t: toggle d-spacing plot','f: select data', … … 2575 2577 elif plottype in ['SASD','REFD']: 2576 2578 if G2frame.SinglePlot: 2577 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 2579 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on','g: toggle grid', 2578 2580 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: toggle selection') 2579 2581 else: 2580 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 2582 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on','g: toggle grid', 2581 2583 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 2582 2584 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: toggle selection') … … 2586 2588 Page.Choice = (' key press', 2587 2589 'b: toggle subtract background','n: log(I) on','s: toggle sqrt plot','c: contour on', 2588 'q: toggle q plot','t: toggle d-spacing plot','m: toggle multidata plot', 2590 'q: toggle q plot','t: toggle d-spacing plot','m: toggle multidata plot','g: toggle grid', 2589 2591 'w: toggle (Io-Ic)/sig plot','+: no selection') 2590 2592 else: 2591 2593 Page.Choice = (' key press','l: offset left','r: offset right','d/D: offset down/10x','u/U: offset up/10x','o: reset offset', 2592 'b: toggle subtract background','n: log(I) on','c: contour on','q: toggle q plot','t: toggle d-spacing plot', 2594 'b: toggle subtract background','n: log(I) on','c: contour on','q: toggle q plot','t: toggle d-spacing plot','g: toggle grid', 2593 2595 'm: toggle multidata plot','w: toggle (Io-Ic)/sig plot','f: select data','s: color scheme','+: no selection') 2594 2596 elif plottype in ['SASD','REFD']: 2595 2597 if G2frame.SinglePlot: 2596 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars', 2598 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars','g: toggle grid', 2597 2599 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') 2598 2600 else: 2599 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars', 2601 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars','g: toggle grid', 2600 2602 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 2601 2603 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') … … 4193 4195 elif event.key == 't' and not G2frame.Contour: 4194 4196 G2frame.Legend = not G2frame.Legend 4197 elif event.key == 'g': 4198 mpl.rcParams['axes.grid'] = not mpl.rcParams['axes.grid'] 4195 4199 PlotISFG(G2frame,data,newPlot=newPlot,plotType=plotType) 4196 4200 … … 4295 4299 if G2frame.Contour: 4296 4300 Page.Choice = (' key press','d: lower contour max','u: raise contour max', 4297 'D: lower contour min','U: raise contour min','o: reset to default', 4301 'D: lower contour min','U: raise contour min','o: reset to default','g: toggle grid', 4298 4302 'i: interpolation method','s: color scheme','c: contour off','f: select data', 4299 4303 ) 4300 4304 else: 4301 4305 Page.Choice = (' key press','l: offset left','r: offset right','d/D: offset down/10x','u/U: offset up/10x', 4302 'o: reset offset','t: toggle legend','c: contour on',' w: toggle waterfall colors (slow!)',4306 'o: reset offset','t: toggle legend','c: contour on','g: toggle grid','w: toggle waterfall colors (slow!)', 4303 4307 'm: toggle multiplot','s: color scheme','f: select data' ) 4304 4308 Page.keyPress = OnPlotKeyPress … … 4605 4609 if len(XY2): 4606 4610 G2IO.XYsave(G2frame,XY2,labelX,labelY,names2) 4607 # else:4608 # return 4611 elif event.key == 'g': 4612 mpl.rcParams['axes.grid'] = not mpl.rcParams['axes.grid'] 4609 4613 Draw() 4610 4614 … … 4682 4686 if lines: 4683 4687 Page.Choice = (' key press','l: offset left','r: offset right','d: offset down', 4684 'u: offset up','o: reset offset',' s: save data as csv file')4688 'u: offset up','o: reset offset','g: toggle grid','s: save data as csv file') 4685 4689 else: 4686 4690 Page.Choice = None … … 4715 4719 G2frame.Cmax = 1.0 4716 4720 4721 elif event.key == 'g': 4722 mpl.rcParams['axes.grid'] = not mpl.rcParams['axes.grid'] 4723 4717 4724 elif event.key == 'i': 4718 4725 choice = ['nearest','bilinear','bicubic','spline16','spline36','hanning', … … 4773 4780 4774 4781 Page.Choice = (' key press','d: lower contour max','u: raise contour max','o: reset contour max', 4775 ' i: interpolation method','s: color scheme')4782 'g: toggle grid','i: interpolation method','s: color scheme') 4776 4783 Page.keyPress = OnKeyPress 4777 4784 Page.SetFocus()
Note: See TracChangeset
for help on using the changeset viewer.