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

Method set_solid_capstyle

lib/matplotlib/lines.py:1450–1463  ·  view source on GitHub ↗

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

(self, s)

Source from the content-addressed store, hash-verified

1448
1449 @_docstring.interpd
1450 def set_solid_capstyle(self, s):
1451 """
1452 How to draw the end caps if the line is solid (not `~Line2D.is_dashed`)
1453
1454 The default capstyle is :rc:`lines.solid_capstyle`.
1455
1456 Parameters
1457 ----------
1458 s : `.CapStyle` or %(CapStyle)s
1459 """
1460 cs = CapStyle(s)
1461 if self._solidcapstyle != cs:
1462 self.stale = True
1463 self._solidcapstyle = cs
1464
1465 def get_dash_capstyle(self):
1466 """

Callers 1

__init__Method · 0.95

Calls 1

CapStyleClass · 0.85

Tested by

no test coverage detected