Shows data points as lines for different cases. Using log scales
Code: "hep_plot.py". Programming language: Python
DMelt Version 1. Last modified: 05/09/2015. License: Free
https://datamelt.org/code/cache/hep_plot_4668.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 jhplot import *
from java.awt import *
c1=HPlot("plot")
c1.setMarginLeft(80)
c1.setMarginBottom(50)
c1.setRange(1,120, 0, 6)
c1.setNameX("L [ab^{-1}]")
c1.setNameY("m_{η} [TeV]")
c1.setLogScale(0,1)
c1.visible()
p1=P1D('#sqrt{s}#bs1{}=50 TeV')
p1.setStyle("l")
p1.setPenWidth(4)
p1.add(1,1.26)
p1.add(3,1.58)
p1.add(10,2.02)
p1.add(30,2.49)
p1.add(100,3.06)
p2=P1D(" #sqrt{s}#bs1{}=100 TeV")
p2.setStyle("l")
p2.setPenWidth(3)
# p2.setColor(Color.blue)
p2.add(1,1.75)
p2.add(3,2.25)
p2.add(10,2.90)
p2.add(30,3.56)
p2.add(100,4.33)
p2.setPenDash(5)
p3=P1D(" #sqrt{s}#bs1{}=200 TeV")
p3.setStyle("l")
p3.setPenWidth(3)
# p3.setColor(Color.blue)
p3.add(1,2.27)
p3.add(3,2.88)
p3.add(10,3.66)
p3.add(30,4.44)
p3.add(100,5.38)
p3.setPenDash(2)
c1.draw(p1)
c1.draw(p2)
c1.draw(p3)
c1.export("plot.eps")
c1.export("plot.pdf")