Changeset 2193 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Apr 2, 2016 10:12:44 AM (7 years ago)
Author:
vondreele
Message:

adjust selected area diffr. image display centering

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2187 r2193  
    24712471    Ymin = np.min(XY.T[0])
    24722472    Ymax = np.max(XY.T[0])
     2473    Dx = 0.5*(Xmax-Xmin)/Nxy[0]
     2474    Dy = 0.5*(Ymax-Ymin)/Nxy[1]
    24732475    Plot.set_title(Title)
    24742476    if labelX:
     
    24822484    acolor = mpl.cm.get_cmap(G2frame.ContourColor)
    24832485    Img = Plot.imshow(Z.T,cmap=acolor,interpolation=G2frame.Interpolate,origin='lower', \
    2484         aspect='auto',extent=[Xmin,Xmax,Ymin,Ymax],vmin=0,vmax=Zmax*G2frame.Cmax)
     2486        aspect='auto',extent=[Xmin-Dx,Xmax-Dx,Ymin+Dy,Ymax+Dy],vmin=0,vmax=Zmax*G2frame.Cmax)
    24852487    Page.figure.colorbar(Img)
    24862488    if not newPlot:
Note: See TracChangeset for help on using the changeset viewer.