aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-11 23:41:32 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-11 23:41:32 -0500
commit4f7009ebd7a5d849107687e4d990f927f23c11b7 (patch)
treeff5a64f5c1a93cfc77b586238a1c4e22ba785538
parent7ceaf05695267783e1506bc3b8724177d28612af (diff)
made bbox tight on figures
-rw-r--r--data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.py b/data.py
index 8dd9319..e2d197e 100644
--- a/data.py
+++ b/data.py
@@ -46,7 +46,7 @@ class Trial:
plt.text(pit[0], pit[1], pit.disp(), ha='center', va='bottom', size='xx-small')
plt.xlabel('%s (dimension %dx%dcm)' % (str(self.date), self.size[0], self.size[1]))
if save:
- plt.savefig(str(self.date)+'.png')
+ plt.savefig(str(self.date)+'.png', bbox_inches='tight')
else:
plt.show()