text_plain_output_1.png
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(10, 5))
thresh_fossil_data = filter_fossil_data > 70
thresh_slice = thresh_fossil_data[slice_idx]
ax1.imshow(test_filt_slice, cmap='bone')
ax1.set_title('Filtered Slices')
_ = ax2.imshow(thresh_slice)
ax2.set_title('Slice with Threshold')