From 6a36d4ac277773deff0d66e93467a45da1298a60 Mon Sep 17 00:00:00 2001 From: Alexandre Gobbo Date: Tue, 28 May 2019 10:37:04 +0200 Subject: [PATCH] Startup --- script/test/test_x2_3.py | 12 ++++++++++++ script/test/test_x2_4.py | 9 +++++++++ 2 files changed, 21 insertions(+) create mode 100644 script/test/test_x2_3.py create mode 100644 script/test/test_x2_4.py diff --git a/script/test/test_x2_3.py b/script/test/test_x2_3.py new file mode 100644 index 0000000..84b7f52 --- /dev/null +++ b/script/test/test_x2_3.py @@ -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 + + + + diff --git a/script/test/test_x2_4.py b/script/test/test_x2_4.py new file mode 100644 index 0000000..57df1e7 --- /dev/null +++ b/script/test/test_x2_4.py @@ -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) \ No newline at end of file