Changeset 1084 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Oct 4, 2013 4:19:03 PM (8 years ago)
Author:
toby
Message:

installer uses xterm on GNOME shortcut

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1077 r1084  
    709709                    item,'Instrument Parameters'))[0])
    710710            item, cookie = G2frame.PatternTree.GetNextChild(G2frame.root, cookie)               
    711     Ymax = 1.0
    712711    lenX = 0
    713712    if PickId:
     
    721720        else:
    722721            HKL = np.array(G2frame.HKL)
     722    Ymax = None
    723723    for Pattern in PlotList:
    724724        xye = Pattern[1]
     725        if xye is None: continue
     726        if Ymax is None: Ymax = max(xye[1])
    725727        Ymax = max(Ymax,max(xye[1]))
     728    if Ymax is None: return # nothing to plot
    726729    offset = G2frame.Offset[0]*Ymax/100.0
    727730    if G2frame.logPlot:
     
    756759        ifpicked = False
    757760        LimitId = 0
     761        if Pattern[1] is None: continue # skip over uncomputed simulations
    758762        xye = ma.array(ma.getdata(Pattern[1]))
    759763        if PickId:
Note: See TracChangeset for help on using the changeset viewer.