Ticket #9: bar-1-item.diff
| File bar-1-item.diff, 0.9 kB (added by jae@…, 4 years ago) |
|---|
-
bar.py
31 31 """Evaluates measures for vertical bars""" 32 32 stores = self._getDatasetsValues() 33 33 uniqx = uniqueIndices(stores) 34 xdelta = min([abs(uniqx[j] - uniqx[j-1]) for j in range(1, len(uniqx))])35 34 36 35 barWidth = 0 37 36 if len(uniqx) == 1: … … 42 41 self.barWidthForSet = barWidth / len(stores) 43 42 self.barMargin = (1.0 - self.options.barWidthFillFraction) / 2 44 43 else: 44 xdelta = min([abs(uniqx[j] - uniqx[j-1]) 45 for j in range(1, len(uniqx))]) 45 46 self.xscale = 1.0 / (self.xrange + 1) 46 47 barWidth = xdelta * self.xscale * self.options.barWidthFillFraction 47 48 self.barWidthForSet = barWidth / len(stores)
