Commit 9f6e550c by Craig Heffner

Added fake entropy graph plot at offset 0 to ensure a full graph even if the…

Added fake entropy graph plot at offset 0 to ensure a full graph even if the entire file has high entropy
parent 526a9796
...@@ -278,6 +278,7 @@ class Entropy(Module): ...@@ -278,6 +278,7 @@ class Entropy(Module):
# Add a fake, invisible plot entry so that offsets at/near the # Add a fake, invisible plot entry so that offsets at/near the
# minimum x value (0) are actually visible on the plot. # minimum x value (0) are actually visible on the plot.
ax.plot(-(max(x)*.001), 1.1, lw=0) ax.plot(-(max(x)*.001), 1.1, lw=0)
ax.plot(-(max(x)*.001), 0, lw=0)
if self.show_legend and has_key(self.file_markers, fname): if self.show_legend and has_key(self.file_markers, fname):
for (offset, description) in self.file_markers[fname]: for (offset, description) in self.file_markers[fname]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment