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

Method set_dash_capstyle

lib/matplotlib/lines.py:1434–1447  ·  view source on GitHub ↗

How to draw the end caps if the line is `~Line2D.is_dashed`. The default capstyle is :rc:`lines.dash_capstyle`. Parameters ---------- s : `.CapStyle` or %(CapStyle)s

(self, s)

Source from the content-addressed store, hash-verified

1432
1433 @_docstring.interpd
1434 def set_dash_capstyle(self, s):
1435 """
1436 How to draw the end caps if the line is `~Line2D.is_dashed`.
1437
1438 The default capstyle is :rc:`lines.dash_capstyle`.
1439
1440 Parameters
1441 ----------
1442 s : `.CapStyle` or %(CapStyle)s
1443 """
1444 cs = CapStyle(s)
1445 if self._dashcapstyle != cs:
1446 self.stale = True
1447 self._dashcapstyle = cs
1448
1449 @_docstring.interpd
1450 def set_solid_capstyle(self, s):

Callers 2

__init__Method · 0.95

Calls 1

CapStyleClass · 0.85

Tested by

no test coverage detected