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)
| 1845 | get_colors = get_color # for compatibility with old versions |
| 1846 | |
| 1847 | def set_gapcolor(self, gapcolor): |
| 1848 | """ |
| 1849 | Set a color to fill the gaps in the dashed line style. |
| 1850 | |
| 1851 | .. note:: |
| 1852 | |
| 1853 | Striped lines are created by drawing two interleaved dashed lines. |
| 1854 | There can be overlaps between those two, which may result in |
| 1855 | artifacts when using transparency. |
| 1856 | |
| 1857 | This functionality is experimental and may change. |
| 1858 | |
| 1859 | Parameters |
| 1860 | ---------- |
| 1861 | gapcolor : :mpltype:`color` or list of :mpltype:`color` or None |
| 1862 | The color with which to fill the gaps. If None, the gaps are |
| 1863 | unfilled. |
| 1864 | """ |
| 1865 | self._original_gapcolor = gapcolor |
| 1866 | self._set_gapcolor(gapcolor) |
| 1867 | |
| 1868 | def _set_gapcolor(self, gapcolor): |
| 1869 | if gapcolor is not None: |
no test coverage detected