Startup
This commit is contained in:
12
script/test/test_x2_3.py
Normal file
12
script/test/test_x2_3.py
Normal file
@@ -0,0 +1,12 @@
|
||||
###################################################################################################
|
||||
# Displaying logarithmic scales
|
||||
###################################################################################################
|
||||
|
||||
p = plot([10,500,1000,5000,1000], xdata = [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
|
||||
|
||||
|
||||
|
||||
|
||||
9
script/test/test_x2_4.py
Normal file
9
script/test/test_x2_4.py
Normal file
@@ -0,0 +1,9 @@
|
||||
###################################################################################################
|
||||
# Example changing plot styles
|
||||
###################################################################################################
|
||||
|
||||
|
||||
data = [0,3,5,1,3,5,3,4,3,2,1,0]
|
||||
[p1, p2, p3] = plot([data, data, data], ["normal", "step", "spline"])
|
||||
p2.setStyle(p1.Style.Step)
|
||||
p3.setStyle(p1.Style.Spline)
|
||||
Reference in New Issue
Block a user