Skip to content

Commit

Permalink
merge: pull request #43 from pthom/implot_demo
Browse files Browse the repository at this point in the history
ImPlot3D online demo: add link in the readme (+ minor warning fix)
  • Loading branch information
brenocq authored Jan 3, 2025
2 parents 41a0006 + 72dbfd9 commit 10f0beb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</div>

<h6 align="center">
<a href="https://github.com/brenocq/implot3d#-demos">Demos</a>
<a href="https://traineq.org/implot_demo/src/implot_demo.html">Online Demo</a>
·
<a href="https://github.com/brenocq/implot3d/discussions">Discussions</a>
·
Expand Down Expand Up @@ -94,6 +94,8 @@ ImGui::End();
## 🎨 Demos
A comprehensive example showcasing ImPlot3D features can be found in `implot3d_demo.cpp`. Add this file to your project and call `ImPlot3D::ShowDemoWindow()` in your update loop. This demo provides a wide variety of 3D plotting examples, serving as a reference for creating different types of 3D plots. The demo is regularly updated to reflect new features and plot types, so be sure to revisit it with each release!
This demo in also [available online](https://traineq.org/implot_demo/src/implot_demo.html), thanks to [this project](https://github.com/pthom/implot_demo): this way, you can test ImPlot3D, and ImPlot right away.
## ⚙️ Integration
To integrate ImPlot3D into your application, follow these steps:
Expand Down
2 changes: 1 addition & 1 deletion implot3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1382,7 +1382,7 @@ void EndPlot() {
for (int i = 0; i < 3; i++) {
ImPlot3DAxis& axis = plot.Axes[i];
if (ImGui::BeginPopup(plane_contexts[i])) {
ImGui::Text(plane_labels[i]);
ImGui::Text("%s", plane_labels[i]);
ImGui::Separator();
ShowPlaneContextMenu(plot, i);
ImGui::EndPopup();
Expand Down

0 comments on commit 10f0beb

Please sign in to comment.