This commit is contained in:
2019-05-28 10:37:04 +02:00
parent a7138b83f6
commit 6a36d4ac27
2 changed files with 21 additions and 0 deletions

12
script/test/test_x2_3.py Normal file
View 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
View 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)