summaryrefslogtreecommitdiff
path: root/util/plot_gen.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_gen.py
parent08088e5563f602eb87fb3ef90770df9cc2faa282 (diff)
downloadECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.gz
ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.zst
ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.zip
Diffstat (limited to 'util/plot_gen.py')
-rwxr-xr-xutil/plot_gen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/util/plot_gen.py b/util/plot_gen.py
index 2ae03ef..f24fd2c 100755
--- a/util/plot_gen.py
+++ b/util/plot_gen.py
@@ -57,7 +57,8 @@ if __name__ == "__main__":
pub_data = list(map(itemgetter(3), 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)
plot_i = 1
@@ -122,4 +123,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)