Changeset 3138


Ignore:
Timestamp:
Oct 24, 2017 2:15:48 PM (6 years ago)
Author:
vondreele
Message:

in 'M' waterfall plots, allow u/U & d/D where upper case is 10x shift. Also allow <0 vertical offsets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3136 r3138  
    13801380            if G2frame.Contour:
    13811381                G2frame.Cmax = max(0.0,G2frame.Cmax*0.8)
    1382             elif Pattern[0]['Offset'][0] > 0.:
     1382            elif Pattern[0]['Offset'][0] > -100.:
    13831383                Pattern[0]['Offset'][0] -= 1.
     1384        elif event.key == 'U':
     1385            if G2frame.Contour:
     1386                G2frame.Cmin += (G2frame.Cmax - G2frame.Cmin)/5.
     1387            elif Pattern[0]['Offset'][0] < 100.:
     1388               Pattern[0]['Offset'][0] += 10.
     1389        elif event.key == 'D':
     1390            if G2frame.Contour:
     1391                G2frame.Cmin -= (G2frame.Cmax - G2frame.Cmin)/5.
     1392            elif Pattern[0]['Offset'][0] > -100.:
     1393                Pattern[0]['Offset'][0] -= 10.
    13841394        elif event.key == 'l' and not G2frame.SinglePlot:
    13851395            Pattern[0]['Offset'][1] -= 1.
     
    19831993                        'w: toggle divide by sig','+: no selection')
    19841994                else:
    1985                     Page.Choice = (' key press','l: offset left','r: offset right','d: offset down','u: offset up','o: reset offset',
     1995                    Page.Choice = (' key press','l: offset left','r: offset right','d/D: offset down/10x','u/U: offset up/10x','o: reset offset',
    19861996                        'b: toggle subtract background','n: log(I) on','c: contour on','q: toggle q plot','t: toggle d-spacing plot',
    19871997                        'm: toggle multidata plot','f: select data','s: color scheme','w: toggle divide by sig','+: no selection')
     
    25212531            if G2frame.Contour:
    25222532                G2frame.Cmax = max(0.0,G2frame.Cmax*0.8)
    2523             elif Page.Offset[1] > 0.:
     2533            elif Page.Offset[1] > -100.:
    25242534                Page.Offset[1] -= 1.
    25252535        elif event.key == 'U':
    2526             G2frame.Cmin += (G2frame.Cmax - G2frame.Cmin)/20.
     2536            if G2frame.Contour:
     2537                G2frame.Cmin += (G2frame.Cmax - G2frame.Cmin)/5.
     2538            elif Page.Offset[1] < 100.:
     2539               Page.Offset[1] += 10.
    25272540        elif event.key == 'D':
    2528             G2frame.Cmin -= (G2frame.Cmax - G2frame.Cmin)/20.
     2541            if G2frame.Contour:
     2542                G2frame.Cmin -= (G2frame.Cmax - G2frame.Cmin)/5.
     2543            elif Page.Offset[1] > -100.:
     2544                Page.Offset[1] -= 10.
    25292545        elif event.key == 'l':
    25302546            Page.Offset[0] -= 1.
     
    26922708                )
    26932709        else:
    2694             Page.Choice = (' key press','l: offset left','r: offset right','d: offset down','u: offset up',
     2710            Page.Choice = (' key press','l: offset left','r: offset right','d/D: offset down/10x','u/U: offset up/10x',
    26952711                'o: reset offset','t: toggle legend','c: contour on','w: toggle waterfall colors (slow!)',
    26962712                'm: toggle multiplot','s: color scheme','f: select data' )
Note: See TracChangeset for help on using the changeset viewer.