Changeset 2997


Ignore:
Timestamp:
Aug 11, 2017 1:24:03 PM (6 years ago)
Author:
vondreele
Message:

fix OnSelect? in SASD models GUI
replace imgAx = Img.get_axes() with imgAx = Img.properties()axes? after deprecation warning in matplotlib in G2plot

Location:
branch/2frame
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branch/2frame/GSASIIplot.py

    r2992 r2997  
    40964096    Img = Plot.imshow(covArray,aspect='equal',cmap=acolor,interpolation='nearest',origin='lower',
    40974097        vmin=-1.,vmax=1.)
    4098     imgAx = Img.get_axes()
     4098    imgAx = Img.properties()['axes']
    40994099    ytics = imgAx.get_yticks()
    41004100    ylabs = [varyList[int(i)] for i in ytics[:-1]]
  • branch/2frame/GSASIIpwdGUI.py

    r2990 r2997  
    42884288            Obj = event.GetEventObject()
    42894289            item,key = Indx[Obj.GetId()]
    4290             item[key] = Obj.GetValue()
     4290            if key in ['NumPoints',]:
     4291                item[key] = int(Obj.GetValue())
     4292            else:
     4293                item[key] = Obj.GetValue()
    42914294            if 'Refine' not in Obj.GetLabel():
    42924295                if 'FormFact' in key :
Note: See TracChangeset for help on using the changeset viewer.