Changeset 4389 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 2, 2020 1:44:42 PM (3 years ago)
Author:
vondreele
Message:

adding fullrmc View & Execute methods. Still to do Setup.
Replace SetText? with SetItemLabel? for the Refine menu item . SetText? is obsolete
remove Load/Save? menu items in RMC tab - won't be used
put in citation info for RMCProfile & fullrmc
remove G2frame from RMCProfile Make routines in G2pwdr. It's a wx object & shouldn't be in there.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4380 r4389  
    53845384################################################################################
    53855385           
    5386 def PlotBarGraph(G2frame,Xarray,Xname='',Yname='Number',Title='',PlotName=None,ifBinned=False):
     5386def PlotBarGraph(G2frame,Xarray,Xname='',Yname='Number',Title='',PlotName=None,ifBinned=False,maxBins=None):
    53875387    'Needs a description'
    53885388   
     
    54155415    else:
    54165416        nBins= max(10,len(Xarray)//10)
     5417        if maxBins is not None:
     5418            nBins = min(nBins,maxBins)
    54175419        Bins,Dbins = np.histogram(Xarray,nBins)
    54185420        wid = Dbins[1]-Dbins[0]
     
    83338335        if key in ['+','-','=','0']:
    83348336            if generalData['Modulated']:
     8337                tstep = 1./36 #0.05
    83358338                if key == '0':
    83368339                    G2frame.tau = 0.
    83378340                elif key in ['+','=']:
    8338                     G2frame.tau += 0.05
     8341                    G2frame.tau += tstep
    83398342                elif key == '-':
    8340                     G2frame.tau -= 0.05
     8343                    G2frame.tau -= tstep
    83418344                G2frame.tau %= 1.   #force 0-1 range; makes loop
    83428345                G2frame.G2plotNB.status.SetStatusText('Modulation tau = %.4f'%(G2frame.tau),1)
Note: See TracChangeset for help on using the changeset viewer.