aboutsummaryrefslogtreecommitdiff
path: root/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'data.py')
-rw-r--r--data.py4
1 files 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: