Changeset 2879 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jun 26, 2017 5:04:06 PM (5 years ago)
Author:
toby
Message:

Seq. Ref.: fix tickmarks on plot; single click on hist in table plots it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2878 r2879  
    11881188    :func:`PlotPatterns`
    11891189    '''
    1190     if not histogram.startswith('PWDR'): return
    1191     G2frame.PatternId = G2gd.GetPatternTreeItemId(G2frame, G2frame.root, histogram)
     1190    if not histogram.startswith('PWDR'): return
     1191    pickId = G2frame.PickId
     1192    G2frame.PickId = G2frame.PatternId = G2gd.GetPatternTreeItemId(G2frame, G2frame.root, histogram)
    11921193    treedata = G2frame.PatternTree.GetItemPyData(G2frame.PatternId)
    11931194    PlotPatterns(G2frame,newPlot=True,plotType='PWDR',data=[treedata[0],refdata])
    11941195    wx.Yield() # force a plot update (needed on Windows?)
    1195 
     1196    G2frame.PickId = pickId
     1197   
    11961198def ReplotPattern(G2frame,newPlot,plotType,PatternName=None,PickName=None):
    11971199    '''This does the same as PlotPatterns except that it expects the information
Note: See TracChangeset for help on using the changeset viewer.