Changeset 4294 for trunk/GSASIIplot.py
- Timestamp:
- Feb 11, 2020 4:45:30 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/GSASIIplot.py ¶
r4293 r4294 3243 3243 if G2frame.SubBack: 3244 3244 if 'PWDR' in plottype: 3245 ObsLine = Plot.plot(Xum,Y,colors[0]+pP,picker=False,clip_on=Clip_on,label=' obs-bkg') #Io-Ib3245 ObsLine = Plot.plot(Xum,Y,colors[0]+pP,picker=False,clip_on=Clip_on,label='_obs-bkg') #Io-Ib 3246 3246 if np.any(Z): #only if there is a calc pattern 3247 CalcLine = Plot.plot(X,Z-W,colors[1],picker=False,label=' calc-bkg') #Ic-Ib3247 CalcLine = Plot.plot(X,Z-W,colors[1],picker=False,label='_calc-bkg') #Ic-Ib 3248 3248 else: 3249 3249 Plot.plot(X,YB,colors[0]+pP,picker=3.,clip_on=Clip_on,label='_obs') … … 3251 3251 else: 3252 3252 if 'PWDR' in plottype: 3253 ObsLine = Plot.plot(Xum,Y,colors[0]+pP,picker=3.,clip_on=Clip_on,label=' obs') #Io3254 CalcLine = Plot.plot(X,Z,colors[1],picker=False,label=' calc') #Ic3253 ObsLine = Plot.plot(Xum,Y,colors[0]+pP,picker=3.,clip_on=Clip_on,label='_obs') #Io 3254 CalcLine = Plot.plot(X,Z,colors[1],picker=False,label='_calc') #Ic 3255 3255 else: 3256 3256 Plot.plot(X,YB,colors[0]+pP,picker=3.,clip_on=Clip_on,label='_obs') 3257 Plot.plot(X,ZB,colors[2],picker=False,label=' calc')3257 Plot.plot(X,ZB,colors[2],picker=False,label='_calc') 3258 3258 if 'PWDR' in plottype and (G2frame.SinglePlot and G2frame.plusPlot): 3259 BackLine = Plot.plot(X,W,colors[2],picker=False,label=' bkg') #Ib3259 BackLine = Plot.plot(X,W,colors[2],picker=False,label='_bkg') #Ib 3260 3260 if not G2frame.Weight and np.any(Z): 3261 DifLine = Plot.plot(X,D,colors[3],picker=1.,label=' diff') #Io-Ic3261 DifLine = Plot.plot(X,D,colors[3],picker=1.,label='_diff') #Io-Ic 3262 3262 Plot.axhline(0.,color='k',label='_zero') 3263 3263 Page.SetToolTipString('') … … 3366 3366 handles,legends = Plot.get_legend_handles_labels() #got double entries in the phase legends for some reason 3367 3367 if handles: 3368 if len(Phases): 3369 labels = dict(zip(legends,handles)) #this removes duplicate phase entries 3370 handles = [labels[item] for item in labels] 3371 legends = list(labels.keys()) 3372 Plot.legend(handles,legends,title='Data & Phases',loc='best') 3373 else: 3374 Plot.legend(handles,legends,title='Data',loc='best') 3368 labels = dict(zip(legends,handles)) #this removes duplicate phase entries 3369 handles = [labels[item] for item in labels] 3370 legends = list(labels.keys()) 3371 Plot.legend(handles,legends,title='Phases',loc='best') 3375 3372 3376 3373 if G2frame.Contour:
Note: See TracChangeset
for help on using the changeset viewer.