19 lines
500 B
Python
Executable File
19 lines
500 B
Python
Executable File
|
|
p = plot([10,500,1000,5000,1000], xdata = [0.1,1,10,100,1000, 10000], title = "Logarithmic")[0]
|
|
|
|
#import org.jfree.chart.axis.NumberAxis as NumberAxis
|
|
#import org.jfree.chart.axis.LogarithmicAxis as LogarithmicAxis
|
|
#jf = p.chart.plot
|
|
#logAxis = LogarithmicAxis("")
|
|
#logAxis.setRange(0.01,100)
|
|
#jf.setDomainAxis(0, logAxis )
|
|
|
|
|
|
#p.getAxis(p.AxisId.X).setRange(0.01, 100000)
|
|
p.getAxis(p.AxisId.X).logarithmic = True
|
|
p.getAxis(p.AxisId.Y).setRange(1, 100000)
|
|
p.getAxis(p.AxisId.Y).logarithmic = True
|
|
|
|
|
|
|