MCPcopy Create free account
hub / github.com/lief-project/LIEF / plot

Method plot

api/python/examples/entropy.py:69–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 1

runMethod · 0.95

Calls 2

itemsMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected