def plot(self, plot_grouped=False, dates=None, min_dets=<NUM_LIT:1>, rate=False,<EOL>**kwargs):
all_dets = []<EOL>if dates:<EOL><INDENT>new_party = self.filter(dates=dates, min_dets=min_dets)<EOL>for fam in new_party.families:<EOL><INDENT>all_dets.extend(fam.detections)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>for fam in self.families:<EOL><INDENT>all_dets.extend(fam.detections)<EOL><DEDENT><DEDENT>fig = cumulative_detections(detections=all_dets,<EOL>plot_grouped=plot_grouped,<EOL>rate=rate, **kwargs)<EOL>return fig<EOL>
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