This repository contains toy ImPlot applications that demonstrate some of the library's functionality. The demos here are more sophisticated than those provided in implot_demo.h
, and may rely on third-party libraries that would otherwise clutter ImPlot's main repository. Use these examples as a starting point for your application and to familiarize yourself with ImPlot, but do not assume all code (e.g. signal processing algorithms) to be perfectly correct or optimal.
- OpenGL
- C++17 compiler
Note: Compiled and tested with MSVC. Minor changes to CMakeLists.txt
may be required to support other compilers. If you make a fix, please submit a PR.
mkdir root
cd root
git clone https://github.com/epezent/implot_demos
git clone https://github.com/epezent/implot
git clone https://github.com/ocornut/imgui
root/
imgui/
implot/
implot_demos/
- Build with CMake, e.g.:
cd implot_demos
mkdir build
cd build
cmake ..
cmake --build . --config Release
Have you created something awesome with ImPlot? If so, please consider submitting a PR with a minimal working example of your application as a demo. Use the following guidelines:
- Modify your ImPlot/ImGui code so that it subclasses
common/App.h
(see any existing demos). - Try to contain your demo to a single file located in
demos/
. - Indicate your authorship and any helpful documentation at the top of your demo source file.
- Add dependencies with CMake
FetchContent
(preferred), git submodules, or manually to the3rdparty/
folder (include the license). - If your demo requires resources (audio, images, etc.), add them to the
resources/
folder. Keep it simple! - Screenshots and/or GIFs with your PR are helpful.