aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-12 00:04:37 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-12 00:04:37 -0500
commitac02c82d9ec813cba47a71a2daea2b570e06ce73 (patch)
tree5eb0d5124703f74214a96479d235eb76f7309d7b
parentcb4fc4d5a57e4d54ec3c402886c0a031dc40faf3 (diff)
bbox_inches not bbox_size
-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: