MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / writeMarkers

Method writeMarkers

site-packages/matplotlib/backends/backend_pdf.py:1436–1449  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1434 return name
1435
1436 def writeMarkers(self):
1437 for ((pathops, fill, stroke, joinstyle, capstyle),
1438 (name, ob, bbox, lw)) in self.markers.items():
1439 bbox = bbox.padded(lw * 0.5)
1440 self.beginStream(
1441 ob.id, None,
1442 {'Type': Name('XObject'), 'Subtype': Name('Form'),
1443 'BBox': list(bbox.extents)})
1444 self.output(GraphicsContextPdf.joinstyles[joinstyle],
1445 Op.setlinejoin)
1446 self.output(GraphicsContextPdf.capstyles[capstyle], Op.setlinecap)
1447 self.output(*pathops)
1448 self.output(Op.paint_path(fill, stroke))
1449 self.endStream()
1450
1451 def pathCollectionObject(self, gc, path, trans, padding, filled, stroked):
1452 name = Name('P%d' % len(self.paths))

Callers 1

finalizeMethod · 0.95

Calls 6

beginStreamMethod · 0.95
outputMethod · 0.95
endStreamMethod · 0.95
paddedMethod · 0.80
NameClass · 0.70
itemsMethod · 0.45

Tested by

no test coverage detected