Changeset 2411 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Aug 8, 2016 5:09:05 PM (7 years ago)
Author:
vondreele
Message:

fix image plot rescaling problem
add ring graininess determination - can be done sequentially
some plot fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2401 r2411  
    24382438def PlotXY(G2frame,XY,XY2=None,labelX=None,labelY=None,newPlot=False,
    24392439    Title='',lines=False,names=[],names2=[]):
    2440     '''simple plot of xy data, used for diagnostic purposes
     2440    '''simple plot of xy data
    24412441    '''
    24422442    def OnKeyPress(event):
     
    24572457            #GSASIIpath.IPyBreak()
    24582458            return
    2459         wx.CallAfter(PlotXY,G2frame,XY,XY2,labelX,labelY,False,Title,False,names)
     2459        wx.CallAfter(PlotXY,G2frame,XY,XY2,labelX,labelY,False,Title,lines,names)
    24602460
    24612461    def OnMotion(event):
     
    24872487        Page.Offset = [0,0]
    24882488   
    2489     if XY2 and len(XY2) > 1:
     2489    if lines:
    24902490        Page.Choice = (' key press','l: offset left','r: offset right','d: offset down',
    24912491            'u: offset up','o: reset offset',)
     
    25132513        Ymax = max(Ymax,max(Y))
    25142514        if lines:
     2515            dX = Page.Offset[0]*(ixy+1)*Xmax/500.
     2516            dY = Page.Offset[1]*(ixy+1)*Ymax/100.
    25152517            if len(names):
    2516                 Plot.plot(X,Y,colors[ixy%6],picker=False,label=names[ixy])
     2518                Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False,label=names[ixy])
    25172519            else:
    2518                 Plot.plot(X,Y,colors[ixy%6],picker=False)
     2520                Plot.plot(X+dX,Y+dY,colors[ixy%6],picker=False)
    25192521        else:
    25202522            Plot.plot(X,Y,colors[ixy%6]+'+',picker=False)
     
    25452547           
    25462548def PlotXYZ(G2frame,XY,Z,labelX=None,labelY=None,newPlot=False,Title=''):
    2547     '''simple contour plot of xyz data, used for diagnostic purposes
     2549    '''simple contour plot of xyz data
    25482550    '''
    25492551    def OnKeyPress(event):
Note: See TracChangeset for help on using the changeset viewer.