Changeset 272 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 29, 2011 2:20:30 PM (11 years ago)
Author:
vondreele
Message:

add slider for "Ruland" coeff.
add 'o' option for undoing offset in powder plots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r271 r272  
    365365        elif event.key == 'r':
    366366            self.Offset[1] += 1.
     367        elif event.key == 'o':
     368            self.Offset = [0,0]
    367369        elif event.key == 'c':
    368370            newPlot = True
     
    525527        else:
    526528            Choice = (' key press','l: offset left','r: offset right','d: offset down',
    527                 'u: offset up','n: log(I) on','c: contour on','q: toggle q plot',
    528                 's: toggle single plot','+: no selection')
     529                'u: offset up','0: reset offset','n: log(I) on','c: contour on',
     530                'q: toggle q plot','s: toggle single plot','+: no selection')
    529531    cb = wx.ComboBox(self.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,
    530532        choices=Choice)
     
    702704        elif event.key == 'r':
    703705            self.Offset[1] += 1.
     706        elif event.key == 'o':
     707            self.Offset = [0,0]
    704708        elif event.key == 'c':
    705709            newPlot = True
     
    769773        Page = self.G2plotNB.nb.GetPage(plotNum)
    770774        if not newPlot:
    771             Plot = Page.figure.gca()          #get previous S(Q) plot & get limits
     775            Plot = Page.figure.gca()          #get previous plot & get limits
    772776            xylim = Plot.get_xlim(),Plot.get_ylim()
    773777        Page.figure.clf()
     
    788792            'i: interpolation method','s: color scheme','c: contour off')
    789793    else:
    790         Choice = (' key press','l: offset left','r: offset right','d: offset down',
    791             'u: offset up','t: toggle legend','c: contour on','s: toggle single plot')
     794        Choice = (' key press','l: offset left','r: offset right','d: offset down','u: offset up',
     795            'o: reset offset','t: toggle legend','c: contour on','s: toggle single plot')
    792796    cb = wx.ComboBox(self.G2plotNB.status,style=wx.CB_DROPDOWN|wx.CB_READONLY,
    793797        choices=Choice)
Note: See TracChangeset for help on using the changeset viewer.