Changeset a17ffdf in sasview for guitools/plottables.py


Ignore:
Timestamp:
Jul 1, 2008 2:55:27 PM (16 years ago)
Author:
Mathieu Doucet <doucetm@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
f168d02
Parents:
d0802c3
Message:

Fixed color management

File:
1 edited

Legend:

Unmodified
Added
Removed
  • guitools/plottables.py

    r4972de2 ra17ffdf  
    4343import numpy 
    4444import math 
     45import sys 
    4546 
    4647if 'any' not in dir(__builtins__): 
     
    198199        if plottable in self.plottables: 
    199200            del self.plottables[plottable] 
    200         if self.color > 0: 
    201             self.color =  self.color -1 
    202         else: 
    203             self.color =0  
     201            if self.color > 0: 
     202                self.color =  self.color -1 
     203            else: 
     204                self.color =0  
    204205             
    205206    def reset_scale(self): 
Note: See TracChangeset for help on using the changeset viewer.