Startup
This commit is contained in:
33
script/test/TestLog.py
Normal file
33
script/test/TestLog.py
Normal file
@@ -0,0 +1,33 @@
|
||||
|
||||
|
||||
data = [1e-13,1e-14,1e-15, 1e-20] * 100
|
||||
#data = [1e30, 1e10, 1e2, 1e-20,1e-22,1e-25, 1e-32, -1e10]
|
||||
#data= [1e-1,1e-2,1e-3,1e-4]
|
||||
#data = [1e12,1e13,1e14,1e15]
|
||||
#ata = [-1e12,-1e13,-1e14,-1e15]
|
||||
#data = [1e-2,1e-1,1e0,1e1, 1e2]
|
||||
|
||||
|
||||
#Qdata = [-1e2,-1e1,-1e-1,1e-1,1e1, 1e2]
|
||||
p = plot(data)[0]
|
||||
|
||||
ay=p.getAxis(p.AxisId.Y)
|
||||
#ay.setLogarithmic(True)
|
||||
|
||||
ax=p.getAxis(p.AxisId.X)
|
||||
ax.setLogarithmic(True)
|
||||
|
||||
|
||||
a=p.chart.getXYPlot().getRangeAxis()
|
||||
|
||||
|
||||
"""
|
||||
p = plot([50, 10,500,1000,5000,1000], xdata = [-10, 0.1,1,10,100,1000, 10000])[0]
|
||||
p.getAxis(p.AxisId.X).logarithmic = True
|
||||
p.getAxis(p.AxisId.Y).setRange(1, 100000)
|
||||
p.getAxis(p.AxisId.Y).logarithmic = True
|
||||
|
||||
|
||||
a=p.chart.getXYPlot().getRangeAxis()
|
||||
a.setLog10TickLabelsFlag(True)
|
||||
"""
|
||||
Reference in New Issue
Block a user