aboutsummaryrefslogtreecommitdiffstats
path: root/src/Test_Plots/test1_updating_series_data.py
diff options
context:
space:
mode:
authorsara <sara.halter@gmx.ch>2021-11-11 20:05:40 +0100
committersara <sara.halter@gmx.ch>2021-11-11 20:05:40 +0100
commit1e873c7ec474b1af4082aafcd33c0ba7a9fd3d51 (patch)
tree98e592e42f27ec2a6bd1db689fc1b4196b4c7573 /src/Test_Plots/test1_updating_series_data.py
parentFIR/Fading implementiert (diff)
parentCreate ZMQ test (diff)
downloadFading-1e873c7ec474b1af4082aafcd33c0ba7a9fd3d51.tar.gz
Fading-1e873c7ec474b1af4082aafcd33c0ba7a9fd3d51.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'src/Test_Plots/test1_updating_series_data.py')
-rw-r--r--src/Test_Plots/test1_updating_series_data.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Test_Plots/test1_updating_series_data.py b/src/Test_Plots/test1_updating_series_data.py
deleted file mode 100644
index 1371008..0000000
--- a/src/Test_Plots/test1_updating_series_data.py
+++ /dev/null
@@ -1,30 +0,0 @@
-import dearpygui.dearpygui as dpg
-from math import sin
-
-dpg.create_context()
-
-# creating data
-sindatax = []
-sindatay = []
-for i in range(0, 500):
- sindatax.append(i / 1000)
- sindatay.append(0.5 + 0.5 * sin(50 * i / 1000))
-
-with dpg.window(label="Tutorial"):
- # create plot
- with dpg.plot(label="Line Series", height=400, width=400):
- # optionally create legend
- dpg.add_plot_legend()
-
- # REQUIRED: create x and y axes
- dpg.add_plot_axis(dpg.mvXAxis, label="x")
- dpg.add_plot_axis(dpg.mvYAxis, label="y", tag="y_axis")
-
- # series belong to a y axis
- dpg.add_line_series(sindatax, sindatay, label="0.5 + 0.5 * sin(x)", parent="y_axis")
-
-dpg.create_viewport(title='Custom Title', width=800, height=600)
-dpg.setup_dearpygui()
-dpg.show_viewport()
-dpg.start_dearpygui()
-dpg.destroy_context() \ No newline at end of file