Changeset 1366 for trunk/GSASIIplot.py


Ignore:
Timestamp:
May 28, 2014 3:43:14 PM (9 years ago)
Author:
vondreele
Message:

change 's' to 'm' - makes more sense

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1350 r1366  
    462462                    G2frame.Offset[0] = 0
    463463                newPlot = True
    464         elif event.key == 'u':
     464        elif event.key == 'u' and (G2frame.Contour or not G2frame.SinglePlot):
    465465            if G2frame.Contour:
    466466                G2frame.Cmax = min(1.0,G2frame.Cmax*1.2)
    467467            elif G2frame.Offset[0] < 100.:
    468468                G2frame.Offset[0] += 1.
    469         elif event.key == 'd':
     469        elif event.key == 'd' and not G2frame.SinglePlot:
    470470            if G2frame.Contour:
    471471                G2frame.Cmax = max(0.0,G2frame.Cmax*0.8)
    472472            elif G2frame.Offset[0] > 0.:
    473473                G2frame.Offset[0] -= 1.
    474         elif event.key == 'l':
     474        elif event.key == 'l' and not G2frame.SinglePlot:
    475475            G2frame.Offset[1] -= 1.
    476         elif event.key == 'r':
     476        elif event.key == 'r' and not G2frame.SinglePlot:
    477477            G2frame.Offset[1] += 1.
    478         elif event.key == 'o':
     478        elif event.key == 'o' and not G2frame.SinglePlot:
    479479            G2frame.Cmax = 1.0
    480480            G2frame.Offset = [0,0]
     
    494494                newPlot = True
    495495                G2frame.sqPlot = not G2frame.sqPlot       
    496         elif event.key == 's':
     496        elif event.key == 'm':
    497497            if G2frame.Contour:
    498498                choice = [m for m in mpl.cm.datad.keys() if not m.endswith("_r")]
     
    771771        if G2frame.logPlot:
    772772            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')
    775780            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')
    779788        else:
    780789            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')
    784798            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')
    788806
    789807    Page.keyPress = OnPlotKeyPress   
Note: See TracChangeset for help on using the changeset viewer.