code: def make_end_to_end_distance_plot(nb_segments, end_to_end_distance, neurite_type):
      '''Plot end-to-end distance vs number of segments'''
      plt.figure()
      plt.plot(nb_segments, end_to_end_distance)
      plt.title(neurite_type)
      plt.xlabel('Number of segments')
      plt.ylabel('End-to-end distance')
      plt.show(f make_end_to_end_distance_plot(nb_segments, end_to_end_distance, neurite_type):
      '''Plot end-to-end distance vs number of segments'''
      plt.figure()
      plt.plot(nb_segments, end_to_end_distance)
      plt.title(neurite_type)
      plt.xlabel('Number of segments')
      plt.ylabel('End-to-end distance')
      plt.show()
docs: Plot end-to-end distance vs number of segments