aboutsummaryrefslogtreecommitdiff
path: root/util/plot_dh.py
diff options
context:
space:
mode:
authorJ08nY2018-03-23 23:55:18 +0100
committerJ08nY2018-03-23 23:55:18 +0100
commit2d5d9dfa09ab6c06efe347d41de00bfed39ab039 (patch)
treeba5eaa231db1fa98040e74aaee9ed1ce57dd4752 /util/plot_dh.py
parent08088e5563f602eb87fb3ef90770df9cc2faa282 (diff)
downloadECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.gz
ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.zst
ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.zip
Diffstat (limited to 'util/plot_dh.py')
-rwxr-xr-xutil/plot_dh.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/plot_dh.py b/util/plot_dh.py
index 327e28a..55e11b3 100755
--- a/util/plot_dh.py
+++ b/util/plot_dh.py
@@ -47,7 +47,8 @@ if __name__ == "__main__":
secret_data = list(map(itemgetter(4), data))
plt.style.use("ggplot")
- fig = plt.figure(tight_layout=True)
+ fig = plt.figure()
+ fig.tight_layout(rect=[0, 0.02, 1, 0.98])
fig.suptitle(opts.file)
axe_hist = fig.add_subplot(2,1,1)
@@ -95,4 +96,5 @@ if __name__ == "__main__":
plt.show()
else:
fig.set_size_inches(12, 10)
- plt.savefig(opts.output, dpi=400)
+ ext = opts.output.name.split(".")[-1]
+ plt.savefig(opts.output, format=ext, dpi=400)