Changeset 4958 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 15, 2021 10:17:24 AM (4 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.

File:
1 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']:
Note: See TracChangeset for help on using the changeset viewer.