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

Method stroke

lib/matplotlib/backends/backend_pdf.py:2411–2420  ·  view source on GitHub ↗

Predicate: does the path need to be stroked (its outline drawn)? This tests for the various conditions that disable stroking the path, in which case it would presumably be filled.

(self)

Source from the content-addressed store, hash-verified

2409 return repr(d)
2410
2411 def stroke(self):
2412 """
2413 Predicate: does the path need to be stroked (its outline drawn)?
2414 This tests for the various conditions that disable stroking
2415 the path, in which case it would presumably be filled.
2416 """
2417 # _linewidth > 0: in pdf a line of width 0 is drawn at minimum
2418 # possible device width, but e.g., agg doesn't draw at all
2419 return (self._linewidth > 0 and self._alpha > 0 and
2420 (len(self._rgb) <= 3 or self._rgb[3] != 0.0))
2421
2422 def fill(self, *args):
2423 """

Callers 7

paintMethod · 0.95
_fill_and_strokeMethod · 0.80
draw_pathMethod · 0.80
draw_markersMethod · 0.80
_post_drawMethod · 0.80
_post_drawMethod · 0.80
drawRubberbandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected