A low-level plotting application implemented in C++ using SDL2 graphics library.
From source:
g++ main.cpp -o plotter $(sdl2-config --cflags --libs) -lmWith CMake:
mkdir build && cd build
cmake ..
makePrebuilt binaries (pick your architecture):
chmod +x ./bin/X_86 # or ./bin/aarch64
./bin/X_86 # or ./bin/aarch64Run ./plotter and follow the menu.
| Choice | What it does |
|---|---|
| 1 → Regular | Plot f(x) example: sin(x)/x^2 red |
| 1 → Parametric | Plot x(t), y(t) example: cos(x) sin(x) cyan |
| 2 | Evaluate an expression example: 2^10 + pi |
| 3 | List expression history |
| 4 | Exit |
Colours: red green blue yellow cyan magenta orange purple black
Functions: sin cos tan asin acos atan sinh cosh tanh sqrt log ln exp abs ceil floor round
Constants: pi e | Operators: + - * / % ^ !
| Input | Action |
|---|---|
| Arrow keys | Pan |
| Scroll wheel | Zoom |
| Left drag | Pan |
| Middle mouse click / Home | Reset view |
| Escape | Close |