Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
d2fa6bdc
Commit
d2fa6bdc
authored
7 years ago
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made entropy plots more readable
parent
0b592bfa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
entropy.py
src/binwalk/modules/entropy.py
+4
-1
No files found.
src/binwalk/modules/entropy.py
View file @
d2fa6bdc
...
...
@@ -270,6 +270,9 @@ class Entropy(Module):
ax
.
set_ylabel
(
self
.
YLABEL
)
ax
.
plot
(
x
,
y
,
lw
=
2
)
# Add a fake, invisible plot entry so that offsets at/near the
# minimum x value (0) are actually visible on the plot.
ax
.
plot
(
-
(
max
(
x
)
*.
001
),
0
,
lw
=
0
)
if
self
.
show_legend
and
has_key
(
self
.
file_markers
,
fname
):
for
(
offset
,
description
)
in
self
.
file_markers
[
fname
]:
...
...
@@ -292,7 +295,7 @@ class Entropy(Module):
ax
.
plot
([
offset
,
offset
],
[
0
,
1.1
],
'
%
s-'
%
color
,
lw
=
2
,
label
=
description
)
ax
.
legend
(
loc
=
'
upp
er right'
,
shadow
=
True
)
ax
.
legend
(
loc
=
'
low
er right'
,
shadow
=
True
)
if
self
.
save_plot
:
out_file
=
os
.
path
.
join
(
os
.
getcwd
(),
os
.
path
.
basename
(
fname
))
+
'.png'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment