OpenGL-based interactive math function plotter
Project description
PyGraph Plotter
An OpenGL-powered interactive math function plotter with 2D, 3D surface, parametric surface, and space curve modes.
Install
pip install pygraph-plotter
Launch
pygraph # open empty plotter
pygraph "sin(x)" # pre-load an expression
pygraph "x**2 - 2*x"
python -m pygraph
Features
- 2D equations — plot any expression in
xwith live pan/zoom - 3D surfaces —
f(x, y)rendered with OpenGL shading and 9 colormaps - Parametric surfaces —
(x(u,v), y(u,v), z(u,v)) - Space curves — 3D parametric curves with tube rendering
- Data files — load CSV/TSV as scatter, line, histogram, KDE, heatmap, or violin plot
- Multi-curve overlay — up to 8 equations plotted simultaneously in 2D
- Animation — use
tin your expression and press Play (sin(x - t)) - Log-scale axes — toggle Log X / Log Y independently
- Zoom-to-fit — auto-scale viewport to the curve's Y range
- Cursor readout — hover shows live x/y coordinates
- Pinned points — double-click to drop coordinate markers
- Zoom box — Shift+drag to rubber-band zoom a region
- Dark mode — toggle in the panel
- Save PNG — Ctrl+S or button; copy to clipboard in one click
- Session persistence — last state restored on relaunch
- Equation history — recent expressions listed for quick reuse
Keyboard Shortcuts
| Key | Action |
|---|---|
| Scroll | Zoom in/out |
| Left drag | Pan |
| Shift + drag | Zoom box |
| Double-click | Pin coordinate marker |
| R | Reset / zoom to fit |
| Space | Play / pause animation |
| Ctrl+S | Save screenshot |
| ? | Show shortcut help |
Requirements
- Python ≥ 3.10
- OpenGL 3.3-capable GPU
Dependencies installed automatically: PyOpenGL, imgui_bundle, numpy, sympy, Pillow.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygraph_plotter-0.2.0.tar.gz
(50.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygraph_plotter-0.2.0.tar.gz.
File metadata
- Download URL: pygraph_plotter-0.2.0.tar.gz
- Upload date:
- Size: 50.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2e003510822126cb3d0f13b4f842660b78c44f030d32a1c99747d27f5e12cac
|
|
| MD5 |
5ac0dc72059f06efd8c42d68a6cf6ddd
|
|
| BLAKE2b-256 |
d9a7e04a850e7c229dd9d471f52d74d1885aeb638b8f73437ec8f3e012dbb5a0
|
File details
Details for the file pygraph_plotter-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pygraph_plotter-0.2.0-py3-none-any.whl
- Upload date:
- Size: 56.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d94b8b2913ebcfa92ff26da7e63c985b9a93771a4f6243d1e807f18b51247c44
|
|
| MD5 |
a827d7e070fe0f5ce5f7877d3ce5860d
|
|
| BLAKE2b-256 |
6c0da0a34958c7f56f391d6453435d0d0fca64d4a3139bbd79c4324d6787c86d
|