code: def plot_segmentation(data, peaks, segment_indexes, figsize=(10, 5)):
      
      fig, ax = plt.subplots(figsize=figsize)
      plt.plot(data);
      
      for segment in np.unique(segment_indexes):
          plt.plot(peaks[np.where(segment_indexes == segment)[0]], data[peaks][np.where(segment_indexes == segment)[0]], 'o')
          
      plt.show()
docs: Will plot the data and segmentation based on the peaks and segment indexes.
      
          :param 1d-array data: The orginal axis of the data that was segmented into sections.
          :param 1d-array peaks: Peaks of the data.
          :param 1d-array segment_indexes: These are the different classes, corresponding to each peak.
          
          Will not return anything, instead it will plot the data and peaks with different colors for each class.