diff options
author | Nao Pross <np@0hm.ch> | 2021-11-11 19:21:33 +0100 |
---|---|---|
committer | Nao Pross <np@0hm.ch> | 2021-11-11 19:21:33 +0100 |
commit | 0ad4b5f2b78e199dae017fdb6cb80fca39102e5a (patch) | |
tree | 9dfd95ba31d63441cf27444fd412498f745f136a /src/Test_Plots/test1_updating_series_data.py | |
parent | Add more references (diff) | |
download | Fading-0ad4b5f2b78e199dae017fdb6cb80fca39102e5a.tar.gz Fading-0ad4b5f2b78e199dae017fdb6cb80fca39102e5a.zip |
Rename sketch.py to gui.py, move tests in test/ directory
Diffstat (limited to 'src/Test_Plots/test1_updating_series_data.py')
-rw-r--r-- | src/Test_Plots/test1_updating_series_data.py | 30 |
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 |