Changeset 3358 for trunk/GSASIIimgGUI.py


Ignore:
Timestamp:
Apr 26, 2018 11:46:19 AM (4 years ago)
Author:
vondreele
Message:

implement new feature for image plotting - linescan; produces 1D plot of intensity along line originating at beam center.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIimgGUI.py

    r3333 r3358  
    173173    if 'setdist' not in data:
    174174        data['setdist'] = data['distance']
     175    if 'linescan' not in data:
     176        data['linescan'] = [False,0.0]      #includes azimuth to draw line scan
    175177#end patch
    176178
     
    771773            else:
    772774                Page.canvas.draw_idle()
     775               
     776        def OnLineScan(event):
     777            data['linescan'][0] = linescan.GetValue()
     778            G2plt.PlotExposedImage(G2frame,event=event)
    773779
    774780        mplv = mpl.__version__.split('.')
     
    817823        scaleSel.Bind(wx.EVT_CHOICE,OnAutoSet)
    818824        autoSizer.Add(scaleSel,0,WACV)
     825        linescan = wx.CheckBox(G2frame.dataWindow,label=' Show line scan')
     826        linescan.Bind(wx.EVT_CHECKBOX,OnLineScan)
     827        linescan.SetValue(data['linescan'][0])
     828        autoSizer.Add((5,0),0)
     829        autoSizer.Add(linescan,0,WACV)
    819830        maxSizer.Add(autoSizer)
    820831        return maxSizer
Note: See TracChangeset for help on using the changeset viewer.