Ignore:
Timestamp:
Feb 22, 2018 1:16:19 PM (5 years ago)
Author:
vondreele
Message:

add selection for mustain, size & 3D pole distribution projections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIddataGUI.py

    r3242 r3296  
    7171            h,k,l = hkl
    7272            Obj.SetValue('%3d %3d %3d'%(h,k,l))
     73            G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)
     74           
     75        def OnProj(event):
     76            Obj = event.GetEventObject()
     77            generalData['3Dproj'] = Obj.GetValue()
    7378            G2plt.PlotSizeStrainPO(G2frame,data,G2frame.hist)
    7479       
     
    8994            POhklSizer.Add(poAxis,0,WACV)
    9095            plotSizer.Add(POhklSizer)
    91         elif generalData['Data plot type'] == 'Inv. pole figure':
    92             pass    #might need something here?     
     96        elif generalData['Data plot type'] in ['Mustrain','Size']:
     97            projSizer = wx.BoxSizer(wx.HORIZONTAL)
     98            projSizer.Add(wx.StaticText(DData,wx.ID_ANY,' Show projections for: '),0,WACV)
     99            proj = ['','x','y','z','xy','xz','yz','xyz']
     100            projType = wx.ComboBox(DData,wx.ID_ANY,value=generalData['3Dproj'],choices=proj,
     101                style=wx.CB_READONLY|wx.CB_DROPDOWN)
     102            projType.Bind(wx.EVT_COMBOBOX, OnProj)
     103            projSizer.Add(projType,0,WACV)
     104            plotSizer.Add(projSizer)           
    93105        return plotSizer
    94106       
Note: See TracChangeset for help on using the changeset viewer.