Changeset 2106 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Dec 24, 2015 1:09:50 PM (7 years ago)
Author:
toby
Message:

more for Andrey: 3. no update on contour plot (change so y-axis is expanded); give up on 2. Load Controls” menu entry messes up plot redraw.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r2091 r2106  
    19271927            Plot.plot(x,y,'rD',clip_on=False,picker=3.)
    19281928    if not newPlot:
     1929        # this restores previous plot limits (but I'm not sure why there are two .push_current calls)
    19291930        Page.toolbar.push_current()
     1931        if G2frame.Contour: # for contour plots expand y-axis to include all histograms
     1932            G2frame.xylim = (G2frame.xylim[0], (0.,len(PlotList)-1.))
    19301933        Plot.set_xlim(G2frame.xylim[0])
    19311934        Plot.set_ylim(G2frame.xylim[1])
     
    39073910            G2frame.itemPicked = None
    39083911           
     3912    # PlotImage execution starts here       
     3913    xylim = []
    39093914    try:
    39103915        plotNum = G2frame.G2plotNB.plotList.index('2D Powder Image')
     
    39703975        G2frame.oldImagefile = imagefile # save name of the last image file read
    39713976        G2frame.oldImageTag = imagetag   # save tag of the last image file read
    3972     else:
    3973         if GSASIIpath.GetConfigValue('debug'): print('Skipping image reread')
     3977    #else:
     3978    #    if GSASIIpath.GetConfigValue('debug'): print('Skipping image reread')
    39743979
    39753980    imScale = 1
Note: See TracChangeset for help on using the changeset viewer.