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)
| 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 | """ |