code: def plot(self, plot_grouped=False, dates=None, min_dets=1, rate=False,
               **kwargs):
          
          all_dets = []
          if dates:
              new_party = self.filter(dates=dates, min_dets=min_dets)
              for fam in new_party.families:
                  all_dets.extend(fam.detections)
          else:
              for fam in self.families:
                  all_dets.extend(fam.detections)
          fig = cumulative_detections(detections=all_dets,
                                      plot_grouped=plot_grouped,
                                      rate=rate, **kwargs)
          return fig
docs: Plot the cumulative detections in time.
  
          :type plot_grouped: bool
          :param plot_grouped:
              Whether to plot all families together (plot_grouped=True), or each
              as a separate line.
          :type dates: list
          :param dates: list of obspy.core.UTCDateTime objects bounding the
              plot. The first should be the start date, the last the end date.
          :type min_dets: int
          :param min_dets: Plot only families with this number of detections
              or more.
          :type rate: bool
          :param rate: Whether or not to plot the daily rate of detection as
              opposed to cumulative number. Only works with plot_grouped=True.
          :param \**kwargs: Any other arguments accepted by
              :func:`eqcorrscan.utils.plotting.cumulative_detections`
  
          .. rubric:: Examples
  
          Plot cumulative detections for all templates individually:
  
          >>> Party().read().plot()  # doctest: +SKIP
  
          Plot cumulative detections for all templates grouped together:
  
          >>> Party().read().plot(plot_grouped=True) # doctest: +SKIP
  
          Plot the rate of detection for all templates grouped together:
  
          >>> Party().read().plot(plot_grouped=True, rate=True) # doctest: +SKIP
  
          Plot cumulative detections for all templates with more than five
          detections between June 1st, 2012 and July 31st, 2012:
  
          >>> from obspy import UTCDateTime
          >>> Party().read().plot(dates=[UTCDateTime(2012, 6, 1),
          ...                            UTCDateTime(2012, 7, 31)],
          ...                     min_dets=5) # doctest: +SKIP