- Timestamp:
- Feb 8, 2021 3:32:39 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIdataGUI.py
r4803 r4806 8525 8525 G2frame.dataWindow.ClearData() 8526 8526 #G2frame.dataWindow.GetSizer() # don't use this since may be wx.HORIZONTAL or wx.VERTICAL 8527 bigSizer = wx.BoxSizer(wx.HORIZONTAL)8528 8527 mainSizer = wx.BoxSizer(wx.VERTICAL) 8529 8528 mainSizer.Add((5,5),) 8530 8529 wtSizer = wx.BoxSizer(wx.HORIZONTAL) 8530 wtSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=G2frame.dataWindow.helpKey)) 8531 8531 wtSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' Weight factor: '),0,WACV) 8532 8532 wtSizer.Add(G2G.ValidatedTxtCtrl(G2frame.dataWindow,data[0],'wtFactor',nDig=(10,3),xmin=1.e-9),0,WACV) … … 8539 8539 # comp.Bind(wx.EVT_COMBOBOX, OnCompression) 8540 8540 # wtSizer.Add(comp,0,WACV) 8541 8541 8542 mainSizer.Add(wtSizer) 8542 8543 wtSizer = wx.BoxSizer(wx.HORIZONTAL) … … 8638 8639 mainSizer.Add(mSizer) 8639 8640 8640 bigSizer.Add(mainSizer) 8641 bigSizer.Add(G2G.HelpButton(G2frame.dataWindow,helpIndex=kind)) 8642 G2frame.dataWindow.SetSizer(bigSizer) 8641 G2frame.dataWindow.SetSizer(mainSizer) 8643 8642 8644 8643 G2frame.GPXtree.SetItemPyData(item,data) -
trunk/GSASIIplot.py
r4804 r4806 321 321 self.toolbar = GSASIItoolbar(self.canvas,publish=publish) 322 322 self.toolbar.Realize() 323 self.plotStyle = {'qPlot':False,'dPlot':False,'sqrtPlot':False,'sqPlot':False,'logPlot':False }323 self.plotStyle = {'qPlot':False,'dPlot':False,'sqrtPlot':False,'sqPlot':False,'logPlot':False,'exclude':False} 324 324 325 325 sizer=wx.BoxSizer(wx.VERTICAL) … … 1779 1779 elif event.key == 'e' and plottype in ['SASD','REFD']: 1780 1780 G2frame.ErrorBars = not G2frame.ErrorBars 1781 elif event.key == 'x'and 'PWDR' in plottype: 1782 Page.plotStyle['exclude'] = not Page.plotStyle['exclude'] 1781 1783 elif event.key == '.': 1782 1784 Page.plotStyle['WgtDiagnostic'] = not Page.plotStyle.get('WgtDiagnostic',False) … … 2863 2865 Page.Choice = [' key press', 2864 2866 'a: add magnification region','b: toggle subtract background', 2865 'c: contour on',' g: toggle grid','m: toggle multidata plot',2866 ' n: toggle log(I)',]2867 'c: contour on','x: toggle excluded regions','g: toggle grid', 2868 'm: toggle multidata plot','n: toggle log(I)',] 2867 2869 if obsInCaption: 2868 2870 Page.Choice += ['o: remove obs, calc,... from legend',] … … 3149 3151 else: 3150 3152 Y = xye[1]*Sample['Scale'][0]*(1.05)**NoffY 3153 if Page.plotStyle['exclude']: 3154 Y = ma.array(Y,mask=ma.getmask(X)) 3155 3151 3156 if LimitId and ifpicked: 3152 3157 limits = np.array(G2frame.GPXtree.GetItemPyData(LimitId)) … … 3252 3257 BackLine = None 3253 3258 DifLine = [None] 3259 if 'PWDR' in plottype and Page.plotStyle['exclude']: 3260 Emask = ma.getmask(ma.masked_less_equal(xye[3],0.)) 3261 Xum = ma.array(Xum,mask=Emask) 3262 X = ma.array(X,mask=Emask) 3263 Y = ma.array(Y,mask=Emask) 3264 Z = ma.array(Z,mask=Emask) 3265 W = ma.array(W,mask=Emask) 3266 3254 3267 if G2frame.Weight: 3255 3268 Plot1.set_yscale("linear") … … 3259 3272 else: 3260 3273 DZ = (xye[1]-xye[3])*np.sqrt(wtFactor*xye[2]) 3274 if Page.plotStyle['exclude']: 3275 DZ = ma.array(DZ,mask=Emask) 3261 3276 DifLine = Plot1.plot(X,DZ,colors[3], 3262 3277 picker=True,pickradius=1.,label=incCptn('diff')) #(Io-Ic)/sig(Io) 3263 3278 Plot1.axhline(0.,color='k') 3264 3279 3265 3280 if Page.plotStyle['logPlot']: 3266 3281 if 'PWDR' in plottype:
Note: See TracChangeset
for help on using the changeset viewer.