pyfeyn2.render.pyx.pyxrender.PyxRender

class pyfeyn2.render.pyx.pyxrender.PyxRender(fd=None, *args, **kwargs)[source]

Bases: Render

__init__(fd=None, *args, **kwargs)[source]

Methods

__init__([fd])

apply_layout(stylestring, obj)

Apply the decorators encoded in a style string to an object.

demo_propagator(propagator[, show, label, shape])

demo_vertex(vertex[, show, label])

get_src()

render([file, show, resolution, width, ...])

Render the diagram.

set_feynman_diagram(fd)

set_src(src)

valid_attribute(attr)

valid_attributes()

valid_shape(typ)

valid_shapes()

valid_style(style)

valid_styles()

valid_type(typ)

valid_types()

apply_layout(stylestring, obj)[source]

Apply the decorators encoded in a style string to an object.

render(file=None, show=True, resolution=200, width=None, height=None, clean_up=False)[source]

Render the diagram.