pyfeyn is hosted by Hepforge, IPPP Durham

PyFeyn examples

Here's some sample output from pyfeyn, with the source code that produces it:

Drell-Yan with QCD vertex correction

Very little code is needed to produce simple diagrams like this one. Note that the labels on the lines are produced by LaTeX and use the predefined names in the hepnames LaTeX package if it's available.

This code produces (click to enlarge):

(PDF version)

Curves and blobs

Note that the curly lines automatically match themselves to the outlines of the interaction blobs! I hope this isn't meant to be a real process...

This code produces (click to enlarge):

(PDF version)

B meson decay

This is a colour-suppressed penguin decay diagram. We'd like to improve the quality of the blob rendering.

This code produces (click to enlarge):

(PDF version)

Higgs loop

A top loop contribution to the Higgs boson mass — the canonical "why we need SUSY" diagram. The main point is that it's pretty simple and the code is correspondingly short.

This code produces (click to enlarge):

(PDF version)

Multi-lines

Multi-lines like these aren't finished yet, but with code like this you can at least get most of the right effect.

This code produces (click to enlarge):

(PDF version)

Graviton and SUSY lines

No, we don't know why there are graviton and SUSY lines available by default. Oh, yes we do: they were fun to write!

This code produces (click to enlarge):

(PDF version)

Silly effects

Where PyFeyn ends, PyX begins. You can take the output of PyFeyn and use it to make silly effects like these transparency-based rotation and translation "blurs".

This code produces (click to enlarge):

(PDF version)