diff options
| author | J08nY | 2018-03-23 23:55:18 +0100 |
|---|---|---|
| committer | J08nY | 2018-03-23 23:55:18 +0100 |
| commit | 2d5d9dfa09ab6c06efe347d41de00bfed39ab039 (patch) | |
| tree | ba5eaa231db1fa98040e74aaee9ed1ce57dd4752 /util | |
| parent | 08088e5563f602eb87fb3ef90770df9cc2faa282 (diff) | |
| download | ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.gz ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.tar.zst ECTester-2d5d9dfa09ab6c06efe347d41de00bfed39ab039.zip | |
Diffstat (limited to 'util')
| -rwxr-xr-x | util/plot_dh.py | 6 | ||||
| -rwxr-xr-x | util/plot_gen.py | 6 |
2 files changed, 8 insertions, 4 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) 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) |
