+ if highest_end is None or end > highest_end:
+ highest_end = end
+ label = f'[{label_formatter}..{label_formatter}): ' % (start, end)
+ label_width = len(label)
+ if max_label_width is None or label_width > max_label_width:
+ max_label_width = label_width
+ if start == last_bucket_start:
+ break
+ sigma_label = f'[{label_formatter}..{label_formatter}): ' % (
+ lowest_start,
+ highest_end,
+ )
+ if len(sigma_label) > max_label_width:
+ max_label_width = len(sigma_label)
+ bar_width = width - (max_label_width + 16)
+
+ for bucket in sorted(self.buckets, key=lambda x: x[0]):
+ start = bucket[0]
+ end = bucket[1]
+ label = f'[{label_formatter}..{label_formatter}): ' % (start, end)
+ pop = self.buckets[bucket]