pyfeyn2

Subpackages

Submodules

Package Contents

Classes

PyxRender

Attributes

package

__version__

renders

styles

types

attributes

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

Bases: pyfeyn2.render.render.Render

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

Render the diagram.

apply_layout(stylestring, obj)

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

static valid_type(typ: str)
static valid_attribute(attr: str) bool
static valid_style(style: str) bool
pyfeyn2.package = pyfeyn2[source]
pyfeyn2.__version__[source]
pyfeyn2.renders[source]
pyfeyn2.styles = ['color', 'opacity', 'arrow-pos', 'parallel-arrow-sense', 'parallel-arrow-displace'][source]
pyfeyn2.types = ['fermion', 'boson', 'vector', 'scalar', 'photon', 'higgs', 'gluon', 'ghost', 'graviton',...[source]
pyfeyn2.attributes = ['x', 'y', 'bend', 'label', 'pdgid', 'sense', 'target', 'source', 'style', 'id', 'type', 'text',...[source]