Changeset 75906a1 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
Oct 26, 2018 4:39:39 AM (6 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:
9d23e4c, 722b7d6
Parents:
aed159f
Message:

More fixes from PK's CR

Location:
src/sas/qtgui/Plotting
Files:
3 edited

Legend:

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

    rcee5c78 r75906a1  
    233233        """ 
    234234        # TODO: sort by zorder of axes then by zorder within axes 
    235         #self._artists.sort(cmp=lambda x, y: cmp(y.zorder, x.zorder)) 
    236         #self._artists.sort(cmp=lambda x, y: y.zorder.__gt__(x.zorder)) 
    237235        found = Selection() 
     236        self._artists.sort(key=lambda x: x.zorder, reverse=True) 
    238237        for artist in self._artists: 
    239238            # TODO: should contains() return false if invisible? 
  • src/sas/qtgui/Plotting/ConvertUnits.py

    rb8080e1 r75906a1  
    1010    """ 
    1111    if power != 0: 
    12         if unit.find("^") != -1:  # if the unit contains a powerer ^ 
    13             toks = re.split("\^", unit) 
     12        if unit.find("^") != -1:  # if the unit contains a power ^ 
     13            toks = re.split(r"\^", unit) 
    1414            if toks[0].find("/") != -1 or \ 
    1515                toks[0].find("-") != -1: 
  • src/sas/qtgui/Plotting/Slicers/AzimutSlicer.py

    re20870bc r75906a1  
    137137        sector = sect(self.base.data2D) 
    138138 
    139         from sas.sasgui.guiframe.dataFitting import Data1D 
     139        from sas.qtgui.Plotting.PlotterData import Data1D 
    140140        if hasattr(sector, "dxl"): 
    141141            dxl = sector.dxl 
Note: See TracChangeset for help on using the changeset viewer.