| 49 | | xdelta = min([abs(uniqx[j] - uniqx[j-1]) |
| 50 | | for j in range(1, len(uniqx))]) |
| 51 | | barWidth = xdelta * self.xscale * self.options.barWidthFillFraction |
| 52 | | self.barWidthForSet = barWidth / len(stores) |
| 53 | | self.barMargin = (xdelta * self.xscale |
| 54 | | * (1.0 - self.options.barWidthFillFraction) / 2) |
| 55 | | |
| 56 | | self.minxdelta = xdelta |
| | 45 | self.minxdelta = min([abs(uniqx[j] - uniqx[j-1]) |
| | 46 | for j in range(1, len(uniqx))]) |
| | 47 | |
| | 48 | k = self.minxdelta * self.xscale |
| | 49 | barWidth = k * self.options.barWidthFillFraction |
| | 50 | self.barWidthForSet = barWidth / len(stores) |
| | 51 | self.barMargin = k * (1.0 - self.options.barWidthFillFraction) / 2 |
| | 52 | |