

import org.jfree.chart.axis.NumberAxis as NumberAxis



p = plot([1,2,3,4,5])[0]
jf = p.chart.plot

xAxis2 = NumberAxis("Secondary X Axis")
xAxis2.setRange(50, 75)
jf.setDomainAxis(1, xAxis2 )
jf.getDomainAxis(0).setRange(0, 5)
#This is just for formatting the new axis fonts and colors, equals to the first axis
jf.getDomainAxis(1).labelPaint = jf.getDomainAxis(0).labelPaint
jf.getDomainAxis(1).labelFont = jf.getDomainAxis(0).labelFont
jf.getDomainAxis(1).tickLabelPaint = jf.getDomainAxis(0).tickLabelPaint
jf.getDomainAxis(1).tickLabelFont = jf.getDomainAxis(0).tickLabelFont



#import org.jfree.chart.axis.LogarithmicAxis as LogarithmicAxis
#xAxis3 = LogarithmicAxis("Thurd X Axis")
#xAxis3.setRange(20,2000)
#jf.setDomainAxis(2, xAxis3 )


