Changeset 8fad50b in sasview


Ignore:
Timestamp:
Oct 26, 2018 5: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)

Location:
src/sas/qtgui/Plotting
Files:
3 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)) 
  • src/sas/qtgui/Plotting/Plotter2D.py

    r2f55df6 r8fad50b  
    11import copy 
    22import numpy 
    3 import pylab 
    43import functools 
    54import logging 
     
    98from PyQt5 import QtWidgets 
    109 
    11 DEFAULT_CMAP = pylab.cm.jet 
    1210 
    1311#import sys 
     
    1513import matplotlib as mpl 
    1614mpl.use("Qt5Agg") 
     15DEFAULT_CMAP = mpl.cm.jet 
    1716 
    1817from mpl_toolkits.mplot3d import Axes3D 
  • src/sas/qtgui/Plotting/PlotterBase.py

    r34f13a83 r8fad50b  
    1 import pylab 
    21import numpy 
    32 
     
    109 
    1110import matplotlib.pyplot as plt 
     11import matplotlib as mpl 
    1212from matplotlib import rcParams 
    1313 
    14 DEFAULT_CMAP = pylab.cm.jet 
     14DEFAULT_CMAP = mpl.cm.jet 
    1515from sas.qtgui.Plotting.Binder import BindArtist 
    1616from sas.qtgui.Plotting.PlotterData import Data1D 
Note: See TracChangeset for help on using the changeset viewer.