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

Method paint_path

lib/matplotlib/backends/backend_pdf.py:483–503  ·  view source on GitHub ↗

Return the PDF operator to paint a path. Parameters ---------- fill : bool Fill the path with the fill color. stroke : bool Stroke the outline of the path with the line color.

(cls, fill, stroke)

Source from the content-addressed store, hash-verified

481
482 @classmethod
483 def paint_path(cls, fill, stroke):
484 """
485 Return the PDF operator to paint a path.
486
487 Parameters
488 ----------
489 fill : bool
490 Fill the path with the fill color.
491 stroke : bool
492 Stroke the outline of the path with the line color.
493 """
494 if stroke:
495 if fill:
496 return cls.fill_stroke
497 else:
498 return cls.stroke
499 else:
500 if fill:
501 return cls.fill
502 else:
503 return cls.endpath
504
505
506class Stream:

Callers 3

writeMarkersMethod · 0.80
paintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected