Changeset 1366 for trunk/GSASIIplot.py
- Timestamp:
- May 28, 2014 3:43:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1350 r1366 462 462 G2frame.Offset[0] = 0 463 463 newPlot = True 464 elif event.key == 'u' :464 elif event.key == 'u' and (G2frame.Contour or not G2frame.SinglePlot): 465 465 if G2frame.Contour: 466 466 G2frame.Cmax = min(1.0,G2frame.Cmax*1.2) 467 467 elif G2frame.Offset[0] < 100.: 468 468 G2frame.Offset[0] += 1. 469 elif event.key == 'd' :469 elif event.key == 'd' and not G2frame.SinglePlot: 470 470 if G2frame.Contour: 471 471 G2frame.Cmax = max(0.0,G2frame.Cmax*0.8) 472 472 elif G2frame.Offset[0] > 0.: 473 473 G2frame.Offset[0] -= 1. 474 elif event.key == 'l' :474 elif event.key == 'l' and not G2frame.SinglePlot: 475 475 G2frame.Offset[1] -= 1. 476 elif event.key == 'r' :476 elif event.key == 'r' and not G2frame.SinglePlot: 477 477 G2frame.Offset[1] += 1. 478 elif event.key == 'o' :478 elif event.key == 'o' and not G2frame.SinglePlot: 479 479 G2frame.Cmax = 1.0 480 480 G2frame.Offset = [0,0] … … 494 494 newPlot = True 495 495 G2frame.sqPlot = not G2frame.sqPlot 496 elif event.key == ' s':496 elif event.key == 'm': 497 497 if G2frame.Contour: 498 498 choice = [m for m in mpl.cm.datad.keys() if not m.endswith("_r")] … … 771 771 if G2frame.logPlot: 772 772 if 'PWDR' in plottype: 773 Page.Choice = (' key press','n: log(I) off','l: offset left','r: offset right','o: reset offset', 774 'c: contour on','q: toggle q plot','s: toggle single plot','w: toggle divide by sig','+: no selection') 773 if G2frame.SinglePlot: 774 Page.Choice = (' key press','n: log(I) off', 775 'c: contour on','q: toggle q plot','m: toggle multidata plot','w: toggle divide by sig','+: no selection') 776 else: 777 Page.Choice = (' key press','n: log(I) off', 778 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 779 'c: contour on','q: toggle q plot','m: toggle multidata plot','w: toggle divide by sig','+: no selection') 775 780 elif 'SASD' in plottype: 776 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 777 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 778 'q: toggle S(q) plot','s: toggle single plot','w: toggle (Io-Ic)/sig plot','+: no selection') 781 if G2frame.SinglePlot: 782 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 783 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') 784 else: 785 Page.Choice = (' key press','b: toggle subtract background file','n: semilog on', 786 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 787 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') 779 788 else: 780 789 if 'PWDR' in plottype: 781 Page.Choice = (' key press','l: offset left','r: offset right','d: offset down', 782 'u: offset up','o: reset offset','b: toggle subtract background','n: log(I) on','c: contour on', 783 'q: toggle q plot','s: toggle single plot','w: toggle divide by sig','+: no selection') 790 if G2frame.SinglePlot: 791 Page.Choice = (' key press', 792 'b: toggle subtract background','n: log(I) on','c: contour on', 793 'q: toggle q plot','m: toggle multidata plot','w: toggle divide by sig','+: no selection') 794 else: 795 Page.Choice = (' key press','l: offset left','r: offset right','d: offset down', 796 'u: offset up','o: reset offset','b: toggle subtract background','n: log(I) on','c: contour on', 797 'q: toggle q plot','m: toggle multidata plot','w: toggle divide by sig','+: no selection') 784 798 elif 'SASD' in plottype: 785 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars', 786 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 787 'q: toggle S(q) plot','s: toggle single plot','w: toggle (Io-Ic)/sig plot','+: no selection') 799 if G2frame.SinglePlot: 800 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars', 801 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') 802 else: 803 Page.Choice = (' key press','b: toggle subtract background file','n: loglog on','e: toggle error bars', 804 'd: offset down','l: offset left','r: offset right','u: offset up','o: reset offset', 805 'q: toggle S(q) plot','m: toggle multidata plot','w: toggle (Io-Ic)/sig plot','+: no selection') 788 806 789 807 Page.keyPress = OnPlotKeyPress
Note: See TracChangeset
for help on using the changeset viewer.