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

Method set_capstyle

lib/matplotlib/patches.py:580–593  ·  view source on GitHub ↗

Set the `.CapStyle`. The default capstyle is 'round' for `.FancyArrowPatch` and 'butt' for all other patches. Parameters ---------- s : `.CapStyle` or %(CapStyle)s

(self, s)

Source from the content-addressed store, hash-verified

578
579 @_docstring.interpd
580 def set_capstyle(self, s):
581 """
582 Set the `.CapStyle`.
583
584 The default capstyle is 'round' for `.FancyArrowPatch` and 'butt' for
585 all other patches.
586
587 Parameters
588 ----------
589 s : `.CapStyle` or %(CapStyle)s
590 """
591 cs = CapStyle(s)
592 self._capstyle = cs
593 self.stale = True
594
595 def get_capstyle(self):
596 """Return the capstyle."""

Callers 4

__init__Method · 0.95
__init__Method · 0.45
drawMethod · 0.45

Calls 1

CapStyleClass · 0.85

Tested by

no test coverage detected