Changeset 110 for trunk/src/pie.py

Show
Ignore:
Timestamp:
10/28/08 15:52:13 (4 years ago)
Author:
lgs
Message:

Draw the dataset name and not the x value in the axis of a pie chart

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/pie.py

    r109 r110  
    6060        self.xticks = [] 
    6161        if self.options.axis.x.ticks: 
    62 #            lookup = dict([(slice.xval, slice) for slice in self.slices]) 
    6362            lookup = dict([(slice.name, slice) for slice in self.slices]) 
    6463            for tick in self.options.axis.x.ticks: 
     
    7271        else: 
    7372            for slice in self.slices: 
    74 #                label = '%s (%.1f%%)' % (slice.xval, slice.fraction * 100) 
    75 #                self.xticks.append((slice.xval, label)) 
    7673                label = '%s (%.1f%%)' % (slice.name, slice.fraction * 100) 
    7774                self.xticks.append((slice.name, label)) 
     
    133130 
    134131        self.xlabels = [] 
    135 #        lookup = dict([(slice.xval, slice) for slice in self.slices]) 
    136132        lookup = dict([(slice.name, slice) for slice in self.slices]) 
    137133