Changeset 1369


Ignore:
Timestamp:
May 29, 2014 11:30:26 AM (8 years ago)
Author:
vondreele
Message:

fix for contour plots & remove bogus sqrt(-ve) error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r1368 r1369  
    489489            elif G2frame.Offset[0] < 100.:
    490490                G2frame.Offset[0] += 1.
    491         elif event.key == 'd' and not G2frame.SinglePlot:
     491        elif event.key == 'd' and (G2frame.Contour or not G2frame.SinglePlot):
    492492            if G2frame.Contour:
    493493                G2frame.Cmax = max(0.0,G2frame.Cmax*0.8)
     
    11501150    else:
    11511151        Page.canvas.draw()
    1152     olderr = np.seterr(invalid='warn') #ugh - this removes a matplotlib error for mouse clicks in log plots                 
     1152    olderr = np.seterr(invalid='ignore') #ugh - this removes a matplotlib error for mouse clicks in log plots
     1153    # and sqrt(-ve) in np.where usage               
    11531154#    G2frame.Pwdr = True
    11541155   
Note: See TracChangeset for help on using the changeset viewer.