Changeset 3712 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Oct 30, 2018 8:50:07 AM (4 years ago)
Author:
vondreele
Message:

add new configuration item: PDF_Rmax maximum radius for G(r) calculations; rarely changed by user
Change PDF GUI Rmax to be for the max r for G(r) plot - no longer r max for calculation
This speeds up optimization
Fix problems with PDF peak table - principally the rowlabels needed to be str not int - crashed wx 4.0 & gave bizarre effects in wx 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3681 r3712  
    41044104            del Peaks['Peaks'][lineNo-2]
    41054105        G2frame.itemPicked = None
    4106         G2pdG.UpdatePDFPeaks(G2frame,Peaks,data)
    4107         PlotISFG(G2frame,data,peaks=Peaks,newPlot=False)
     4106        wx.CallAfter(G2pdG.UpdatePDFPeaks,G2frame,Peaks,data)
     4107        wx.CallAfter(PlotISFG,G2frame,data,peaks=Peaks,newPlot=False)
    41084108
    41094109    # PlotISFG continues here
     
    41724172        Plot.set_xlabel(r'r,$\AA$',fontsize=14)
    41734173        Plot.set_ylabel(r'G(r), $\AA^{-2}$',fontsize=14)
     4174        if lim is not None:
     4175            lim[0] = list([lim[0][0],data['Rmax']])
     4176            Plot.set_xlim(lim[0])
    41744177    else:
    41754178        Plot.set_xlabel(r'$Q,\AA^{-1}$',fontsize=14)
     
    42754278                Yb = [0.,-10.*np.pi*numbDen]
    42764279                Plot.plot(Xb,Yb,color='k',dashes=(5,5))
     4280                Plot.set_xlim([0.,PDFdata['Rmax']])
    42774281            elif plotType == 'F(Q)':
    42784282                Plot.axhline(0.,color='k')
Note: See TracChangeset for help on using the changeset viewer.