Changeset 8fad50b in sasview for src/sas/qtgui/Plotting/ColorMap.py


Ignore:
Timestamp:
Oct 26, 2018 3:37:59 AM (5 years ago)
Author:
Piotr Rozyczko <piotr.rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
33812c3
Parents:
8748751
Message:

Replaced pylab.cm with mpl.cm (PK's code review)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/ColorMap.py

    rd6b8a1d r8fad50b  
    88 
    99import matplotlib as mpl 
    10 from matplotlib import pylab 
    1110import numpy 
    1211 
     
    3231        self.data = data 
    3332        self._cmap_orig = self._cmap = cmap if cmap is not None else DEFAULT_MAP 
    34         self.all_maps = [m for m in pylab.cm.datad] 
     33        self.all_maps = [m for m in mpl.cm.datad] 
    3534        self.maps = sorted(m for m in self.all_maps if not m.endswith("_r")) 
    3635        self.rmaps = sorted(set(self.all_maps) - set(self.maps)) 
Note: See TracChangeset for help on using the changeset viewer.