Changeset 5370 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Nov 12, 2022 4:36:04 PM (7 months ago)
Author:
toby
Message:

fix validatedTextCtrl; add sliders for contour thresholds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r5368 r5370  
    21072107                Page.plotStyle['logPlot'] = False
    21082108                G2frame.SubBack = False
    2109             Ymax = max(Pattern[1][1])
     2109            YmaxS = max(Pattern[1][1])
    21102110            if Page.plotStyle['sqrtPlot']:
    2111                 Page.plotStyle['delOffset'] = .02*np.sqrt(Ymax)
    2112                 Page.plotStyle['refOffset'] = -0.1*np.sqrt(Ymax)
    2113                 Page.plotStyle['refDelt'] = .1*np.sqrt(Ymax)
     2111                Page.plotStyle['delOffset'] = .02*np.sqrt(YmaxS)
     2112                Page.plotStyle['refOffset'] = -0.1*np.sqrt(YmaxS)
     2113                Page.plotStyle['refDelt'] = .1*np.sqrt(YmaxS)
    21142114            else:
    2115                 Page.plotStyle['delOffset'] = .02*Ymax
    2116                 Page.plotStyle['refOffset'] = -0.1*Ymax
    2117                 Page.plotStyle['refDelt'] = .1*Ymax
     2115                Page.plotStyle['delOffset'] = .02*YmaxS
     2116                Page.plotStyle['refOffset'] = -0.1*YmaxS
     2117                Page.plotStyle['refDelt'] = .1*YmaxS
    21182118            newPlot = True
    21192119        elif event.key == 'S' and 'PWDR' in plottype:
     
    21622162                G2frame.Cmin = 0.0
    21632163                Page.plotStyle['Offset'] = [0,0]
     2164        elif event.key == 'C' and 'PWDR' in plottype and G2frame.Contour:
     2165            G2G.makeContourSliders(G2frame,Ymax,PlotPatterns,newPlot,plotType)
    21642166        elif event.key == 'c' and 'PWDR' in plottype:
    21652167            newPlot = True
     
    32093211            'D: lower contour min','U: raise contour min',
    32103212            'o: reset contour limits','g: toggle grid',
    3211             'i: interpolation method','S: color scheme','c: contour off','t: temperature for y-axis','s: toggle sqrt plot')
     3213            'i: interpolation method','S: color scheme','c: contour off',
     3214            't: temperature for y-axis','s: toggle sqrt plot',
     3215            'C: contour plot control window'
     3216            )
    32123217    else:
    32133218        if 'PWDR' in plottype:
Note: See TracChangeset for help on using the changeset viewer.