MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_gapcolor

Method set_gapcolor

lib/matplotlib/lines.py:1122–1143  ·  view source on GitHub ↗

Set a color to fill the gaps in the dashed line style. .. note:: Striped lines are created by drawing two interleaved dashed lines. There can be overlaps between those two, which may result in artifacts when using transparency. This

(self, gapcolor)

Source from the content-addressed store, hash-verified

1120 self._drawstyle = drawstyle
1121
1122 def set_gapcolor(self, gapcolor):
1123 """
1124 Set a color to fill the gaps in the dashed line style.
1125
1126 .. note::
1127
1128 Striped lines are created by drawing two interleaved dashed lines.
1129 There can be overlaps between those two, which may result in
1130 artifacts when using transparency.
1131
1132 This functionality is experimental and may change.
1133
1134 Parameters
1135 ----------
1136 gapcolor : :mpltype:`color` or None
1137 The color with which to fill the gaps. If None, the gaps are
1138 unfilled.
1139 """
1140 if gapcolor is not None:
1141 mcolors._check_color_like(color=gapcolor)
1142 self._gapcolor = gapcolor
1143 self.stale = True
1144
1145 def set_linewidth(self, w):
1146 """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected