def tile(self, x, y, w, h, color=None,<EOL>anchor='<STR_LIT>', edgecolors='<STR_LIT>', linewidth=<NUM_LIT>,<EOL>**kwargs):
<EOL>if color is not None and kwargs.get('<STR_LIT>', True):<EOL><INDENT>sortidx = color.argsort()<EOL>x = x[sortidx]<EOL>y = y[sortidx]<EOL>w = w[sortidx]<EOL>h = h[sortidx]<EOL>color = color[sortidx]<EOL><DEDENT>if anchor == '<STR_LIT>':<EOL><INDENT>def _poly(x, y, w, h):<EOL><INDENT>return ((x, y), (x, y+h), (x+w, y+h), (x+w, y))<EOL><DEDENT><DEDENT>elif anchor == '<STR_LIT>':<EOL><INDENT>def _poly(x, y, w, h):<EOL><INDENT>return ((x-w, y), (x-w, y+h), (x, y+h), (x, y))<EOL><DEDENT><DEDENT>elif anchor == '<STR_LIT>':<EOL><INDENT>def _poly(x, y, w, h):<EOL><INDENT>return ((x, y-h), (x, y), (x+w, y), (x+w, y-h))<EOL><DEDENT><DEDENT>elif anchor == '<STR_LIT>':<EOL><INDENT>def _poly(x, y, w, h):<EOL><INDENT>return ((x-w, y-h), (x-w, y), (x, y), (x, y-h))<EOL><DEDENT><DEDENT>elif anchor == '<STR_LIT>':<EOL><INDENT>def _poly(x, y, w, h):<EOL><INDENT>return ((x-w/<NUM_LIT>, y-h/<NUM_LIT>), (x-w/<NUM_LIT>, y+h/<NUM_LIT>),<EOL>(x+w/<NUM_LIT>, y+h/<NUM_LIT>), (x+w/<NUM_LIT>, y-h/<NUM_LIT>))<EOL><DEDENT><DEDENT>else:<EOL><INDENT>raise ValueError("<STR_LIT>".format(anchor))<EOL><DEDENT>cmap = kwargs.pop('<STR_LIT>', rcParams['<STR_LIT>'])<EOL>coll = PolyCollection((_poly(*tile) for tile in zip(x, y, w, h)),<EOL>edgecolors=edgecolors, linewidth=linewidth,<EOL>**kwargs)<EOL>if color is not None:<EOL><INDENT>coll.set_array(color)<EOL>coll.set_cmap(cmap)<EOL><DEDENT>out = self.add_collection(coll)<EOL>self.autoscale_view()<EOL>return out<EOL>
Plot rectanguler tiles based onto these `Axes`.

        ``x`` and ``y`` give the anchor point for each tile, with
        ``w`` and ``h`` giving the extent in the X and Y axis respectively.

        Parameters
        ----------
        x, y, w, h : `array_like`, shape (n, )
            Input data

        color : `array_like`, shape (n, )
            Array of amplitudes for tile color

        anchor : `str`, optional
            Anchor point for tiles relative to ``(x, y)`` coordinates, one of

            - ``'center'`` - center tile on ``(x, y)``
            - ``'ll'`` - ``(x, y)`` defines lower-left corner of tile
            - ``'lr'`` - ``(x, y)`` defines lower-right corner of tile
            - ``'ul'`` - ``(x, y)`` defines upper-left corner of tile
            - ``'ur'`` - ``(x, y)`` defines upper-right corner of tile

        **kwargs
            Other keywords are passed to
            :meth:`~matplotlib.collections.PolyCollection`

        Returns
        -------
        collection : `~matplotlib.collections.PolyCollection`
            the collection of tiles drawn

        Examples
        --------
        >>> import numpy
        >>> from matplotlib import pyplot
        >>> import gwpy.plot  # to get gwpy's Axes

        >>> x = numpy.arange(10)
        >>> y = numpy.arange(x.size)
        >>> w = numpy.ones_like(x) * .8
        >>> h = numpy.ones_like(x) * .8

        >>> fig = pyplot.figure()
        >>> ax = fig.gca()
        >>> ax.tile(x, y, w, h, anchor='ll')
        >>> pyplot.show()