From ac02c82d9ec813cba47a71a2daea2b570e06ce73 Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Sun, 12 Jan 2020 00:04:37 -0500
Subject: bbox_inches not bbox_size
---
data.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/data.py b/data.py
index 93d874d..9acbdbb 100644
--- a/data.py
+++ b/data.py
@@ -134,7 +134,7 @@ elif arg == 'nei':
plt.ylabel('Nearest Neighbor for Individual Pits (cm)')
plt.plot(x, y, 'bo')
plt.plot(x, np.poly1d(np.polyfit(x, y, 1))(x))
- plt.savefig('nearest_neighbor.png', bbox_size='tight')
+ plt.savefig('nearest_neighbor.png', bbox_inches='tight')
elif arg == 'depwid':
depths, widths = [], []
for trial in trials:
@@ -147,7 +147,7 @@ elif arg == 'depwid':
plt.xlabel('Square root of Trial Area (cm)')
plt.ylabel('Depth/Width of Antlion Pits (cm)')
plt.legend(loc='upper right')
- plt.savefig('depth_width.png', bbox_size='tight')
+ plt.savefig('depth_width.png', bbox_inches='tight')
if arg == 'table':
print('Dimensions (in)\tPit Depth (cm)\tPit Width (cm)\tNearest Neighbor (cm)')
for trial in trials:
--
cgit