Changeset 4008
 Timestamp:
 May 31, 2019 11:25:27 AM (3 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/GSASIIplot.py
r4007 r4008 2684 2684 DifLine[0].set_xdata(X[Ibeg:Ifin]) 2685 2685 DifLine[0].set_ydata(DZ[Ibeg:Ifin]) 2686 Plot1.set_ylim((min(DZ[Ibeg:Ifin]),max(DZ[Ibeg:Ifin]))) 2686 lims = [min(DZ[Ibeg:Ifin]),max(DZ[Ibeg:Ifin])] 2687 if all(np.isfinite(lims)): Plot1.set_ylim(lims) 2687 2688 CalcLine[0].set_xdata(X) 2688 2689 ObsLine[0].set_xdata(X) … … 3179 3180 Plot.set_yscale("log",nonposy='mask') 3180 3181 if np.any(W>0.): 3181 Plot.set_ylim(bottom=np.min(np.trim_zeros(W))/2.,top=np.max(Y)*2.)3182 lims = [np.min(np.trim_zeros(W))/2.,np.max(Y)*2.] 3182 3183 else: 3183 Plot.set_ylim(bottom=np.min(np.trim_zeros(YB))/2.,top=np.max(Y)*2.) 3184 lims = [np.min(np.trim_zeros(YB))/2.,np.max(Y)*2.] 3185 if all(np.isfinite(lims)): 3186 Plot.set_ylim(bottom=lims[0],top=lims[1]) 3184 3187 # Matplotlib artist lists used for refPlotUpdate 3185 3188 ObsLine = None … … 3201 3204 try: 3202 3205 CurLims[i] = float(G2frame.FixedLimits['dylims'][i]) 3203 Plot1.set_ylim(CurLims)3204 3206 except: 3205 3207 pass 3208 if all(np.isfinite(CurLims)): Plot1.set_ylim(CurLims) 3206 3209 if Page.plotStyle['logPlot']: 3207 3210 if 'PWDR' in plottype:
Note: See TracChangeset
for help on using the changeset viewer.