def plot(self, label='<STR_LIT:key>', **kwargs):
<EOL>from ..plot import Plot<EOL>plot = Plot(self, projection='<STR_LIT>', **kwargs)<EOL>artists = [x for ax in plot.axes for x in ax.collections]<EOL>for key, artist in zip(self, artists):<EOL><INDENT>if label.lower() == '<STR_LIT:name>':<EOL><INDENT>lab = self[key].name<EOL><DEDENT>elif label.lower() != '<STR_LIT:key>':<EOL><INDENT>lab = key<EOL><DEDENT>else:<EOL><INDENT>lab = label<EOL><DEDENT>artist.set_label(lab)<EOL><DEDENT>return plot<EOL>
Plot this flag on a segments projection.

        Parameters
        ----------
        label : `str`, optional
            Labelling system to use, or fixed label for all flags,
            special values include

            - ``'key'``: use the key of the `DataQualityDict`,
            - ``'name'``: use the :attr:`~DataQualityFlag.name` of the flag

            If anything else, that fixed label will be used for all lines.

        **kwargs
            all keyword arguments are passed to the
            :class:`~gwpy.plot.Plot` constructor.

        Returns
        -------
        figure : `~matplotlib.figure.Figure`
            the newly created figure, with populated Axes.

        See Also
        --------
        matplotlib.pyplot.figure
            for documentation of keyword arguments used to create the
            figure
        matplotlib.figure.Figure.add_subplot
            for documentation of keyword arguments used to create the
            axes
        gwpy.plot.SegmentAxes.plot_segmentlist
            for documentation of keyword arguments used in rendering the data