implot
ImPlot bindings for Nim
Summary
| Latest Version | 1.2.0 |
|---|---|
| License | MIT |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-11-20 14:01 |
Tags
Authors
- dinau
Installation
nimble install implot
choosenim install implot
git clone https://github.com/dinau/nim_implot
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| implot | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 2.2.10 | No |
| https://github.com/nimgl/imgui == | 1.93.1 | No |
| nimgl >= | 1.3.2 | No |
Source
| Repository | https://github.com/dinau/nim_implot |
|---|---|
| Homepage | https://github.com/dinau/nim_implot |
| Registry Source | nimble_official |
README
- Nim ImPlot binding
- Prerequisites
- Nimble install
- Running demo programs
- Compiling application
- Notice: Compilation options
- Generating ImPlot bindings for development
- Nim version
- Example gallery written in Nim language
- Plots
- LinePlots.nim
- FilledLinePlots.nim
- ShadedPlots.nim
- ScatterPlots.nim
- RealtimePlots.nim
- StairstepPlots.nim
- BarGroups.nim
- BarPlots.nim
- BarStacks.nim
- ErrorBars.nim
- StemPlots.nim
- InfiniteLines.nim
- PieCharts.nim
- HeatMaps.nim
- Histogram.nim
- DigitalPlots.nim
- Images.nim
- MarkersAndText.nim
- NaNValues.nim
- PerIndexColors.nim
- Subplots
- Axes
- Tools
- Custom
- Other ImGui / CImGui project
- SDL game tutorial Platfromer
Nim ImPlot binding
Updated ImPlot / CImPlot (2026/11/08).
ImPlot is an immediate mode, GPU accelerated plotting library for Dear ImGui.
This project uses the modified generator that derived from the achievement of Nimgl/imgui.
Prerequisites
- Windows11 or later
MSys2/MinGW basic commands (make, rm, cp, strip ...)
sh
pacman -S make mingw-w64-ucrt-x86_64-{gcc,glfw}
- Linux Debian13 Trixie (and Ubuntu families)
sh
sudo apt install make git gcc g++
sudo apt install lib{opengl-dev,gl1-mesa-dev,glfw3-dev,xcursor-dev,xinerama-dev,xi-dev}
-
Install nim (If you'd like to install Nim compiler)
sh curl https://nim-lang.org/choosenim/init.sh -sSf | shYou must now ensure that the Nimble bin dir is in your PATH.
Place the following line in the ~/.profile or ~/.bashrc file.
export PATH=/home/username/.nimble/bin:$PATH
Nimble install
nimble uninstall implot # Remove old version if exists
nimble install implot
Running demo programs
git clone https://github.com/dinau/nim_implot
cd nim_implot
make run
Demo source: examples/demo
Compiling application
The cpp backend is required. From the repository root, build and run the demo with:
make run
To compile and run it directly:
cd examples/demo
nim cpp -r ImPlotDemo.nim
Note: C backend is not supported.
Notice: Compilation options
If demo programs crash, please try to specify compilation option
--mm:refc instead of --mm:arc or --mm:orc,
especially if you use Nim-2.00, try to specify --mm:refc.
These are TODO at this moment.
Generating ImPlot bindings for development
nimble gen
This command generates src/implot.nim from the JSON files in src/implot/private/cimplot/generator/output.
Any existing changes to src/implot.nim will be overwritten.
Nim version
The package requires Nim 2.2.8 or later. The current development environment uses Nim 2.2.14.
Example gallery written in Nim language
The demo application includes more than 50 examples. Selected examples are shown below. The original C++ demo is implot_demo.cpp.
Plots
LinePlots.nim
FilledLinePlots.nim
ShadedPlots.nim
ScatterPlots.nim
RealtimePlots.nim
StairstepPlots.nim
BarGroups.nim
BarPlots.nim
BarStacks.nim
ErrorBars.nim
StemPlots.nim
InfiniteLines.nim
PieCharts.nim
HeatMaps.nim
Histogram.nim
DigitalPlots.nim
Images.nim
MarkersAndText.nim
NaNValues.nim
PerIndexColors.nim
Subplots
Tables.nim
ItemSharing.nim
Axes
LogScale.nim
MultipleAxes.nim
Tools
OffsetAndStride.nim
DragRects.nim
DragAndDrop.nim
Custom
CustomDataAndGetters.nim
Other ImGui / CImGui project
| Language | Project | |
|---|---|---|
| Lua | Script | LuaJITImGui |
| NeLua | Compiler | NeLuaImGui, NeLuaImGui2 |
| Nim | Compiler | ImGuin, Nimgl_test, Nim_implot |
| Python | Script | DearPyGui for 32bit WindowsOS Binary |
| Ruby | Script | igRuby_Examples |
| Zig, C lang. | Compiler | Dear_Bindings_Build |
| Zig | Compiler | ImGuinZ |
SDL game tutorial Platfromer

| Language | SDL | Project | |
|---|---|---|---|
| LuaJIT | Script | SDL2 | LuaJIT-Platformer |
| Nelua | Compiler | SDL2 | NeLua-Platformer |
| Nim | Compiler | SDL3 / SDL2 | Nim-Platformer-sdl2/ Nim-Platformer-sdl3 |
| Ruby | Script | SDL3 | Ruby-Platformer |
| Zig | Compiler | SDL3 / SDL2 | Zig-Platformer |