Changeset 2863 for trunk/GSASIIphsGUI.py


Ignore:
Timestamp:
Jun 14, 2017 4:11:42 PM (6 years ago)
Author:
vondreele
Message:

extend contour color selection to include reversed ones (doubles the list!)
add Contour_color to configuration items; modify the Preferences GUI to present a ComboBox? for the color maps
continue implementation of protein validator
np.max --> np.fmax in some places (there may be more to be found); new numpy won't allow np.max to be used to compare an array with a value
fix one use of float as array index - not allowed now: there may be others in G2plot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r2853 r2863  
    54975497        if 'Axial' not in textureData['PlotType'] and '3D' not in textureData['PlotType']:
    54985498            PTSizer.Add(wx.StaticText(Texture,-1,' Color scheme'),0,WACV)
    5499             choice = [m for m in mpl.cm.datad.keys() if not m.endswith("_r")]
     5499            choice = [m for m in mpl.cm.datad.keys()]       #if not m.endswith("_r")
    55005500            choice.sort()
    55015501            colorSel = wx.ComboBox(Texture,-1,value=G2frame.ContourColor,choices=choice,
     
    76427642        if 'Map Peaks' in data:
    76437643            mapPeaks = np.array(data['Map Peaks'])
    7644             peakMax = np.max(mapPeaks.T[0])
     7644            peakMax = np.fmax(mapPeaks.T[0])
    76457645            Ind = MapPeaks.GetSelectedRows()
    76467646            for ind in Ind:
Note: See TracChangeset for help on using the changeset viewer.