changed to manual bin creation in plot_link_lengths