Changeset 4958 for trunk


Ignore:
Timestamp:
Jun 15, 2021 10:17:24 AM (3 months ago)
Author:
vondreele
Message:

put floor onn histogram scale = 1e-4 (might be too big?)
set pixilation for pole figures & inverse pole figures to 101; use interpolation to smooth. Now faster.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4957 r4958  
    63666366        if 'Type' not in RefData or 'RefList' not in RefData:
    63676367            generalData['Data plot type'] = 'None'
    6368 #            G2G.G2MessageBox(G2frame,'Reflection list not ready','RefData error')
    63696368            return
    63706369        Type = RefData['Type']
     
    64386437            pass
    64396438        acolor = mpl.cm.get_cmap(G2frame.ContourColor)
    6440         Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1])
     6439        Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1],interpolation='bilinear')
    64416440        Plot.plot(y,x,'+',picker=True,pickradius=3)
    64426441        Page.figure.colorbar(Img)
     
    65466545       
    65476546    else:       
    6548         npts = 201
     6547        npts = 101
    65496548        if 'Inverse' in SHData['PlotType']:
    65506549            X,Y = np.meshgrid(np.linspace(1.,-1.,npts),np.linspace(-1.,1.,npts))
     
    65636562                pass
    65646563            acolor = mpl.cm.get_cmap(G2frame.ContourColor)
    6565             Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1])
     6564            Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1],interpolation='bilinear')
    65666565            Page.figure.colorbar(Img)
    65676566            x,y,z = SHData['PFxyz']
     
    66186617                pass
    66196618            acolor = mpl.cm.get_cmap(G2frame.ContourColor)
    6620             Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1])
     6619            Img = Plot.imshow(Z.T,aspect='equal',cmap=acolor,extent=[-1,1,-1,1],interpolation='bilinear')
    66216620            Page.figure.colorbar(Img)
    66226621            if 'det Angles' in textureData and textureData['ShoDet']:
  • trunk/GSASIIstrIO.py

    r4950 r4958  
    37113711       
    37123712            Sample = Histogram['Sample Parameters']
     3713            parmDict[pfx+'Scale'] = max(1.e-4,parmDict[pfx+'Scale'])                        #put floor on phase fraction scale
    37133714            sampSig = SetSampleParms(pfx,Sample,parmDict,sigDict)
    37143715
  • trunk/GSASIIstrMath.py

    r4950 r4958  
    25992599def GetIntensityCorr(refl,im,uniq,G,g,pfx,phfx,hfx,SGData,calcControls,parmDict):
    26002600    'Needs a doc string'    #need powder extinction!
     2601    parmDict[phfx+'Scale'] = max(1.e-4,parmDict[hfx+'Scale'])                        #put floor on phase fraction scale
    26012602    parmDict[hfx+'Scale'] = max(1.e-4,parmDict[hfx+'Scale'])                        #put floor on phase fraction scale
    26022603    Icorr = parmDict[phfx+'Scale']*parmDict[hfx+'Scale']*refl[3+im]               #scale*multiplicity
Note: See TracChangeset for help on using the changeset viewer.