pyfeyn2.render.pyx.diagrams.FeynDiagram

class pyfeyn2.render.pyx.diagrams.FeynDiagram(objects=None, canvas=None)[source]

Bases: object

The main PyFeyn diagram class.

__init__(objects=None, canvas=None)[source]

Objects for holding a set of Feynman diagram components.

Methods

__init__([objects, canvas])

Objects for holding a set of Feynman diagram components.

add(*objs)

Add an object to the diagram.

draw(outfile[, enlargement])

Draw the diagram to a file, with the filetype (EPS or PDF) derived from the file extension.

drawToCanvas()

Draw the components of this diagram in a well-defined order.

Attributes

currentDiagram

add(*objs)[source]

Add an object to the diagram.

draw(outfile, enlargement=0)[source]

Draw the diagram to a file, with the filetype (EPS or PDF) derived from the file extension.

drawToCanvas()[source]

Draw the components of this diagram in a well-defined order.