Changeset 2701 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Feb 13, 2017 2:58:18 PM (5 years ago)
Author:
vondreele
Message:

Rename ShowLSParms to OnShowLSParms
Add [Ymin,Ymax] to PWDR data[0] dict as 'Yminmax'
shift Phases = up a few lines to fix plot open bugs
Also PDFdata = up a few lines
Provide a ResetFlatBkg? to provide a start for Flat Bkg based on sample, Background, Container mns & mults for PDF.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2697 r2701  
    18181818        Page.canvas.mpl_connect('button_release_event', OnRelease)
    18191819        Page.canvas.mpl_connect('button_press_event',OnPress)
    1820     Phases = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,G2frame.PatternId,'Reflection Lists'))
    1821     Page.phaseList = sorted(Phases.keys()) # define an order for phases (once!)
    18221820    if 'PWDR' in G2frame.PatternTree.GetItemText(G2frame.PickId):
     1821        Phases = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,G2frame.PatternId,'Reflection Lists'))
     1822        Page.phaseList = sorted(Phases.keys()) # define an order for phases (once!)
    18231823        G2frame.dataFrame.Bind(wx.EVT_MENU, onMoveDiffCurve, id=G2frame.dataFrame.moveDiffCurve.GetId())
    18241824        G2frame.dataFrame.Bind(wx.EVT_MENU, onMoveTopTick, id=G2frame.dataFrame.moveTickLoc.GetId())
     
    25602560        Page.Choice = ()
    25612561    PatternId = G2frame.PatternId
     2562    PDFdata = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId, 'PDF Controls'))
     2563    numbDen = G2pwd.GetNumDensity(PDFdata['ElList'],PDFdata['Form Vol'])
    25622564    name = G2frame.PatternTree.GetItemText(PatternId)[4:]
    25632565    if G2frame.SinglePlot:
     
    25862588    Plot.set_title(name)
    25872589    colors=['b','g','r','c','m','k']
    2588     PDFdata = G2frame.PatternTree.GetItemPyData(G2gd.GetPatternTreeItemId(G2frame,PatternId, 'PDF Controls'))
    2589     numbDen = G2pwd.GetNumDensity(PDFdata['ElList'],PDFdata['Form Vol'])
    25902590    Ymax = 0.01
    25912591    lenX = 0
Note: See TracChangeset for help on using the changeset viewer.