Changeset 5636 for trunk/GSASIIplot.py
- Timestamp:
- Jul 27, 2023 6:21:18 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r5629 r5636 4067 4067 G2frame.MagLines = magMarkers 4068 4068 if PickId and G2frame.GPXtree.GetItemText(PickId) == 'Background': 4069 mag2th = [0]+[x for x,m in data[0].get('Magnification',[])][1:] 4070 magmult = [m for x,m in data[0].get('Magnification',[])] 4069 4071 # plot fixed background points 4070 4072 backDict = G2frame.GPXtree.GetItemPyData(G2gd.GetGPXtreeItemId(G2frame,G2frame.PatternId, 'Background'))[1] … … 4074 4076 Parms = None 4075 4077 for x,y in backDict.get('FixedPoints',[]): 4078 if magmult: 4079 mult = magmult[np.searchsorted(mag2th, x, side = 'right')-1] 4080 else: 4081 mult = 1. 4076 4082 # "normal" intensity modes only! 4077 4083 if G2frame.SubBack or G2frame.Weight or G2frame.Contour or not G2frame.SinglePlot: … … 4091 4097 else: 4092 4098 break 4093 Plot.plot(x,y ,'rD',clip_on=Clip_on,picker=True,pickradius=10.)4099 Plot.plot(x,y*mult,'rD',clip_on=Clip_on,picker=True,pickradius=10.) 4094 4100 4095 4101 # plot the partials. TODO: get partials to show up in publication plot
Note: See TracChangeset
for help on using the changeset viewer.