Changeset 1463
- Timestamp:
- Aug 15, 2014 6:17:31 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r1462 r1463 948 948 if 'C' in Parms['Type'][0]: 949 949 wave = G2mth.getWave(Parms) 950 if (G2frame.qPlot or G2frame.dPlot)and 'PWDR' in plottype:950 if G2frame.qPlot and 'PWDR' in plottype: 951 951 try: 952 952 xpos = 2.0*asind(xpos*wave/(4*math.pi)) 953 953 except ValueError: #avoid bad value in asin beyond upper limit 954 954 pass 955 elif G2frame.dPlot: 956 dsp = xpos 957 q = 2.*np.pi/dsp 958 xpos = 2.0*asind(wave/(2.*dsp)) 955 959 dsp = 0.0 956 960 if abs(xpos) > 0.: #avoid possible singularity at beam center … … 977 981 dsp = 0.0 978 982 difC = Parms['difC'][1] 979 dsp = xpos/difC #rough approx.! 983 if G2frame.dPlot: 984 dsp = xpos 985 xpos = difC*dsp 986 elif G2frame.qPlot and 'PWDR' in plottype: 987 dsp = 2.*np.pi/xpos 988 xpos = difC*dsp 989 else: 990 dsp = xpos/difC #rough approx.! 980 991 q = 2.*np.pi/dsp 981 992 if G2frame.Contour: … … 1095 1106 def OnRelease(event): 1096 1107 if G2frame.itemPicked is None: return 1097 if DifLine[0] and DifLine[0].get_label() instr(G2frame.itemPicked):1108 if str(DifLine[0]) == str(G2frame.itemPicked): 1098 1109 ypos = event.ydata 1099 1110 G2frame.delOffset = -ypos/Ymax
Note: See TracChangeset
for help on using the changeset viewer.