Changeset a17ffdf in sasview


Ignore:
Timestamp:
Jul 1, 2008 12: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

Location:
guitools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • guitools/PlotPanel.py

    r4972de2 ra17ffdf  
    572572        from plottable_interactor import PointInteractor 
    573573        p = PointInteractor(self, self.subplot, zorder=3, id=name) 
    574         p.points(x, y, dx, dy, color, symbol, label) 
     574        p.points(x, y, dx=dx, dy=dy, color=color, symbol=symbol, label=label) 
    575575         
    576576        self.subplot.set_yscale(self.yscale) 
     
    584584        from plottable_interactor import PointInteractor 
    585585        p = PointInteractor(self, self.subplot, zorder=4, id=name) 
    586         p.curve(x, y, dy, color, symbol, label) 
     586        p.curve(x, y, dy=dy, color=color, symbol=symbol, label=label) 
    587587         
    588588        self.subplot.set_yscale(self.yscale) 
  • guitools/plottable_interactor.py

    r7fef474 ra17ffdf  
    88        self.zorder = zorder 
    99        self.id = id 
     10        self.color=color 
    1011        self.colorlist = ['b','g','r','c','m','y'] 
    1112        self.symbollist = ['o','x','^','v','<','>','+','s','d','D','h','H','p'] 
     
    141142            Update 
    142143        """ 
    143         print "update" 
     144        pass 
    144145      
    145146      
  • 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.