Showing double log in X and Y axes and special symbols
Code: "canvas2D_doublelog.py"
Programming language: Python
DMelt Version 1. Last modified: 05/08/2015. License: Free
http://jwork.org/dmelt/code/cache/canvas2D_doublelog_6825.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 *
import math

c1=HPlot("plot")
c1.setGTitle("Double log")
c1.setMarginLeft(50)
c1.setMarginBottom(20)
c1.setRange(0.9, 8, 1, 20)
c1.setNameY("cross section (ab)")
c1.setNameYpos(-0.01,0.75)
c1.setNameX("m_{η} (TeV)")
c1.setMaxNumberOfSubticsLog(10)
c1.setTicLabels(True)
c1.setLogScale(0,1)
c1.setLogScale(1,1)
c1.visible()

p1=P1D('#sqrt{s}#bs1{}=50 TeV')
p1.setStyle("l")
p1.setPenWidth(4)
p1.add(1,1)
p1.add(2,2)
p1.add(3,2.5)
p1.add(4,3.5)

p2=P1D(" #sqrt{s}#bs1{}=100 TeV")
p2.setStyle("l")
p2.setPenWidth(3)
p2.setPenDash(2)
p2.add(1,3)
p2.add(3,7)
p2.add(6,10)
p2.add(8,11)

p3=P1D(" #sqrt{s}#bs1{}=200 TeV")
p3.setStyle("l")
p3.setPenWidth(3)
p3.add(2,9)
p3.add(3,13)
p3.add(4,14)
p3.setPenDash(5)

c1.draw(p1)
c1.draw(p2)
c1.draw(p3)
#c1.export("plot.eps")
#c1.export("plot.pdf")