Changeset 3888 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Apr 11, 2019 3:59:48 PM (4 years ago)
Author:
vondreele
Message:

provide contour plot (not finished yet) on structure drawing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3850 r3888  
    52185218        if 'showRigidBodies' not in drawingData:
    52195219            drawingData['showRigidBodies'] = True
     5220        if 'showSlice' not in drawingData:
     5221            drawingData['showSlice'] = False
    52205222        if 'Plane' not in drawingData:
    52215223            drawingData['Plane'] = [[0,0,1],False,False,0.0,[255,255,0]]
     
    62496251                G2plt.PlotStructure(G2frame,data)
    62506252               
     6253            def OnShowSlice(event):
     6254                drawingData['showSlice'] = showCS.GetValue()
     6255                G2plt.PlotStructure(G2frame,data)
     6256               
    62516257            def OnViewPoint(event):
    62526258                event.Skip()
     
    63376343           
    63386344            showSizer.Add(line2Sizer)
     6345           
     6346            line3Sizer = wx.BoxSizer(wx.HORIZONTAL)
     6347           
     6348            showCS = wx.CheckBox(drawOptions,-1,label=' Show contour slice?')
     6349            showCS.Bind(wx.EVT_CHECKBOX, OnShowSlice)
     6350            showCS.SetValue(drawingData['showSlice'])           
     6351            line3Sizer.Add(showCS,0,WACV)
     6352           
     6353            showSizer.Add(line3Sizer)
     6354           
    63396355            return showSizer
    63406356           
Note: See TracChangeset for help on using the changeset viewer.