From 4f7009ebd7a5d849107687e4d990f927f23c11b7 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sat, 11 Jan 2020 23:41:32 -0500
Subject: made bbox tight on figures
---
data.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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()
--
cgit