Changeset 4389 for trunk/GSASIIplot.py
- Timestamp:
- Apr 2, 2020 1:44:42 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIplot.py
r4380 r4389 5384 5384 ################################################################################ 5385 5385 5386 def PlotBarGraph(G2frame,Xarray,Xname='',Yname='Number',Title='',PlotName=None,ifBinned=False ):5386 def PlotBarGraph(G2frame,Xarray,Xname='',Yname='Number',Title='',PlotName=None,ifBinned=False,maxBins=None): 5387 5387 'Needs a description' 5388 5388 … … 5415 5415 else: 5416 5416 nBins= max(10,len(Xarray)//10) 5417 if maxBins is not None: 5418 nBins = min(nBins,maxBins) 5417 5419 Bins,Dbins = np.histogram(Xarray,nBins) 5418 5420 wid = Dbins[1]-Dbins[0] … … 8333 8335 if key in ['+','-','=','0']: 8334 8336 if generalData['Modulated']: 8337 tstep = 1./36 #0.05 8335 8338 if key == '0': 8336 8339 G2frame.tau = 0. 8337 8340 elif key in ['+','=']: 8338 G2frame.tau += 0.058341 G2frame.tau += tstep 8339 8342 elif key == '-': 8340 G2frame.tau -= 0.058343 G2frame.tau -= tstep 8341 8344 G2frame.tau %= 1. #force 0-1 range; makes loop 8342 8345 G2frame.G2plotNB.status.SetStatusText('Modulation tau = %.4f'%(G2frame.tau),1)
Note: See TracChangeset
for help on using the changeset viewer.