(self)
| 67 | |
| 68 | |
| 69 | def plot(self): |
| 70 | plt = pg.plot(title = "Entropy") |
| 71 | plt.addLegend() |
| 72 | |
| 73 | for idx, (section, result) in enumerate(self.result.items()): |
| 74 | x = [] |
| 75 | y = [] |
| 76 | for offset, entropy in result: |
| 77 | x.append(offset) |
| 78 | y.append(entropy) |
| 79 | if len(result) > self.DEFAULT_THRESHOLD: |
| 80 | c1 = plt.plot(x, y,\ |
| 81 | pen=pg.intColor(idx * 10, 100),\ |
| 82 | name=section.name,\ |
| 83 | antialias = True,\ |
| 84 | fillLevel=0,\ |
| 85 | fillBrush=pg.intColor(idx * 10, 100, alpha = 40)) |
| 86 | |
| 87 | def run(self): |
| 88 |