aboutsummaryrefslogtreecommitdiffstats
path: root/src/Test_Plots/test8_custom_context_menus.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/test8_custom_context_menus.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/test8_custom_context_menus.py')
-rw-r--r--src/Test_Plots/test8_custom_context_menus.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/Test_Plots/test8_custom_context_menus.py b/src/Test_Plots/test8_custom_context_menus.py
deleted file mode 100644
index b459d15..0000000
--- a/src/Test_Plots/test8_custom_context_menus.py
+++ /dev/null
@@ -1,33 +0,0 @@
-import dearpygui.dearpygui as dpg
-from math import sin
-
-dpg.create_context()
-
-sindatax = []
-sindatay = []
-for i in range(0, 100):
- sindatax.append(i / 100)
- sindatay.append(0.5 + 0.5 * sin(50 * i / 100))
-
-with dpg.window(label="Tutorial", width=400, height=400):
- # create plot
- dpg.add_text("Right click a series in the legend!")
- with dpg.plot(label="Line Series", height=-1, width=-1):
- dpg.add_plot_legend()
-
- dpg.add_plot_axis(dpg.mvXAxis, label="x")
- dpg.add_plot_axis(dpg.mvYAxis, label="y", tag="yaxis")
-
- # series 1
- dpg.add_line_series(sindatax, sindatay, label="series 1", parent="yaxis", tag="series_1")
- dpg.add_button(label="Delete Series 1", parent=dpg.last_item(), callback=lambda: dpg.delete_item("series_1"))
-
- # series 2
- dpg.add_line_series(sindatax, sindatay, label="series 2", parent="yaxis", tag="series_2")
- dpg.add_button(label="Delete Series 2", parent=dpg.last_item(), callback=lambda: dpg.delete_item("series_2"))
-
-dpg.create_viewport(title='Custom Title', width=800, height=600)
-dpg.setup_dearpygui()
-dpg.show_viewport()
-dpg.start_dearpygui()
-dpg.destroy_context()