Feynman diagram (2) of the ADD model with graviton and photon
Code: "feynman_add2_graviton.py". Programming language: Python DMelt Version 1. Last modified: 07/19/2015. License: Free
https://datamelt.org/code/cache/feynman_add2_graviton_4269.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.



from java.awt import *
from jhplot import *
from jhplot.jadraw import Diagram

# position of the diagram on the canvas
Xpos=0.33 
Ypos=0.22 

c1=HPlotJa("Canvas",600,400,1,1,0)
# c1.setGTitle("Feynman Diagram objects", Color.blue)
c1.visible()
c1.showEditor(0)

# upper V shape
# start position x=0.05, y=0.1 
gl=Diagram.FLine(Xpos,Ypos)
gl.setRelWH(-0.15,-0.2,"NDC")
gl.setStroke(2)
c1.add(gl)

# lower
gl=Diagram.FLine(Xpos,Ypos+0.4)
gl.setRelWH(0.15,-0.2,"NDC")
gl.setStroke(2)
c1.add(gl)

# vertical
gl=Diagram.FLine(Xpos+0.15,Ypos+0.2)
gl.setRelWH(0.0,-0.2,"NDC")
gl.setStroke(2)
c1.add(gl)


gl=Diagram.PLine(Xpos+0.15,Ypos)
gl.setRelWH(-0.15,0.2,"NDC")
gl.setStroke(3)
c1.add(gl)

gl=Diagram.PLine(Xpos+0.15,Ypos+0.4)
gl.setRelWH(0.15,0.2,"NDC")
gl.setStroke(2)
c1.add(gl)

# show Higgs lines
gl=Diagram.Text("q", Xpos-0.1,Ypos+0.65)
c1.add(gl)
gl=Diagram.Text("#bar{q}", Xpos-0.1,Ypos)
c1.add(gl)

# show Higgs lines
gl=Diagram.Text("γ", Xpos+0.36,Ypos+0.65)
c1.add(gl)
gl=Diagram.Text("G", Xpos+0.36,Ypos)
c1.add(gl)

c1.update()
# c1.export("add2_diagram.eps")