Changeset 1212


Ignore:
Timestamp:
Jan 31, 2014 3:51:20 PM (11 years ago)
Author:
vondreele
Message:

fix scaling of log images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/GSASIIplot.py

    r1205 r1212  
    22982298            return
    22992299        if PickName == 'Masks':
    2300             if event.key in ['p','f','s','a','r']:
     2300            if event.key in ['l','p','f','s','a','r']:
    23012301                G2frame.MaskKey = event.key
    23022302                OnStartMask(G2frame)
     
    25082508                            else:
    25092509                                arcs[aN][1][1] = int(G2img.GetAzm(Xpos,Ypos,Data))
    2510                     for poly in G2frame.polyList:
     2510                    for poly in G2frame.polyList:   #merging points problem here & how can we insert a point?
    25112511                        if Obj == poly[0]:
    25122512                            ind = G2frame.itemPicked.contains(G2frame.mousePicked)[1]['ind'][0]
     
    25602560            Page.keyPress = OnImPlotKeyPress
    25612561        elif G2frame.PatternTree.GetItemText(G2frame.PickId) in ['Masks',]:
    2562             Page.Choice = (' key press','s: spot mask','a: arc mask','r: ring mask',
     2562            Page.Choice = (' key press','l: log(I) on','s: spot mask','a: arc mask','r: ring mask',
    25632563                'p: polygon mask','f: frame mask',)
     2564            if G2frame.logPlot:
     2565                Page.Choice[1] = 'l: log(I) off'
    25642566            Page.keyPress = OnImPlotKeyPress
    25652567        elif G2frame.PatternTree.GetItemText(G2frame.PickId) in ['Stress/Strain',]:
     
    26002602           
    26012603        if newImage:                   
     2604            Imin,Imax = Data['range'][1]
    26022605            MA = ma.masked_greater(ma.masked_less(G2frame.ImageZ,Zlim[0]),Zlim[1])
    26032606            MaskA = ma.getmaskarray(MA)
     
    26052608            AM = G2img.ImageCompress(MaskA,imScale)
    26062609            if G2frame.logPlot:
     2610                A = np.where(A>Imin,np.where(A<Imax,A,0),0)
    26072611                A = np.where(A>0,np.log(A),0)
    26082612                AM = np.where(AM>0,np.log(AM),0)
Note: See TracChangeset for help on using the changeset viewer.