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)
| 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 | """ |
no outgoing calls
no test coverage detected