Changeset 69e0760 in sasview


Ignore:
Timestamp:
May 5, 2012 12:31:05 PM (13 years ago)
Author:
Jae Cho <jhjcho@…>
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:
199fdec
Parents:
90bb22c
Message:

thick curve and can be modified with markersize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plottools/src/danse/common/plottools/plottable_interactor.py

    r10bfeb3 r69e0760  
    4141        #Draw curve 
    4242        if self._symbol(symbol) == '-': 
    43             return self.curve(x=x, y=y, color=color, label=label) 
     43            l_width = markersize * 0.4 
     44            return self.curve(x=x, y=y, color=color, label=label, width=l_width) 
    4445            #return 
    4546        if not self.marker == None: 
     
    8990        self.update() 
    9091         
    91     def curve(self, x, y, dy=None, color=0, symbol=0, label=None): 
     92    def curve(self, x, y, dy=None, color=0, symbol=0, label=None, width=2.0): 
    9293        """ 
    9394        """ 
     
    9596            self.base.connect.clear([self.marker]) 
    9697        self.color = self._color(color) 
    97         self.marker = self.axes.plot(x, y, color=self.color, lw=1.5, 
     98        self.marker = self.axes.plot(x, y, color=self.color, lw=width, 
    9899                                     marker='', linestyle='-', label=label)[0] 
    99100             
Note: See TracChangeset for help on using the changeset viewer.