Skip to content

Commit

Permalink
Add implot_demo.py (transcription of implot_demo.cpp)
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Feb 20, 2025
1 parent 1a25a1e commit d7cb534
Show file tree
Hide file tree
Showing 4 changed files with 1,890 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bindings/imgui_bundle/demos_cpp/demo_implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ void demo_implot()
ImGui::SameLine();
if (ImGui::Button("C++ demo code"))
ImmApp::BrowseToUrl("https://github.com/epezent/implot/blob/master/implot_demo.cpp");
ImGui::SameLine();
if (ImGui::Button("Python demo code"))
ImmApp::BrowseToUrl("https://github.com/pthom/imgui_bundle/blob/main/bindings/imgui_bundle/demos_python/demos_implot/implot_demo.py");
ImPlot::ShowAllDemos();
}
if (ImGui::CollapsingHeader("ImPlot: Mixed plot##2"))
Expand Down
7 changes: 6 additions & 1 deletion bindings/imgui_bundle/demos_python/demo_implot.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,12 @@ def demo_gui():
imgui.same_line()
if imgui.button("C++ demo code"):
webbrowser.open("https://github.com/brenocq/implot3d/blob/main/implot3d_demo.cpp")
implot.show_all_demos()
imgui.same_line()
if imgui.button("Python demo code"):
webbrowser.open("https://github.com/pthom/imgui_bundle/blob/main/bindings/imgui_bundle/demos_python/demos_implot/implot_demo.py")
from imgui_bundle.demos_python.demos_implot import implot_demo
implot_demo.show_all_demos()
#implot.show_all_demos()
if imgui.collapsing_header("ImPlot: Drag Rects"):
demo_drag_rects()
if imgui.collapsing_header("ImPlot: Mixed plot##2"):
Expand Down
Empty file.
Loading

0 comments on commit d7cb534

Please sign in to comment.