Repository: matplotlib/matplotlib
File: lib/matplotlib/patches.py (Python)

Code before:
        if cbook._str_equal(color, 'edge'):
            self._hatch_color = 'edge'
        else:
            self._hatch_color = colors.to_rgba(color, self._alpha)
        self.stale = True

    def set_hatchcolor(self, color):
        """
        Set the patch hatch color.

        Parameters
        ----------
        color : :mpltype:`color` or 'edge' or None
        """
        self._original_hatchcolor = color
        self._set_hatchcolor(color)

    def get_gapcolor(self):
        """
        Return the edge gapcolor.

        See also `~.Patch.set_gapcolor`.
        """
        return self._gapcolor

    def set_gapcolor(self, gapcolor):
        """
        Set a color to fill the gaps in the dashed edge style.

        .. note::

            Striped edges are created by drawing two interleaved dashed lines.
            There can be overlaps between those two, which may result in
            artifacts when using transparency.

            This functionality is experimental and may change.

        Parameters
        ----------
        gapcolor : :mpltype:`color` or None
            The color with which to fill the gaps. If None, the gaps are
            unfilled.
        """
        if gapcolor is not None:
            colors._check_color_like(color=gapcolor)
        self._gapcolor = gapcolor
        self.stale = True

    def set_alpha(self, alpha):
        # docstring inherited
        super().set_alpha(alpha)

Review comment (suggestion):
```suggestion
    def get_edgegapcolor(self):
        """
        Return the edge gapcolor.

        See also `~.Patch.set_gapcolor`.
        """
        return self._gapcolor

    def set_edgegapcolor(self, gapcolor):
```
As suggested in the issue.

Code after:
        if cbook._str_equal(color, 'edge'):
            self._hatch_color = 'edge'
        else:
            self._hatch_color = colors.to_rgba(color, self._alpha)
        self.stale = True

    def set_hatchcolor(self, color):
        """
        Set the patch hatch color.

        Parameters
        ----------
        color : :mpltype:`color` or 'edge' or None
        """
        self._original_hatchcolor = color
        self._set_hatchcolor(color)

    def get_edgegapcolor(self):
        """
        Return the edge gap color.

        .. versionadded:: 3.11

        See also `~.Patch.set_edgegapcolor`.
        """
        return self._gapcolor

    def set_edgegapcolor(self, edgegapcolor):
        """
        Set a color to fill the gaps in the dashed edge style.

        .. versionadded:: 3.11

        .. note::

            Striped edges are created by drawing two interleaved dashed lines.
            There can be overlaps between those two, which may result in
            artifacts when using transparency.

            This functionality is experimental and may change.

        Parameters
        ----------
        edgegapcolor : :mpltype:`color` or None
            The color with which to fill the gaps. If None, the gaps are
            unfilled.
        """
        if edgegapcolor is not None:
            self._gapcolor = colors.to_rgba(edgegapcolor, self._alpha)
        else:
            self._gapcolor = None