HYGrapher (2D & 3D)
A high-performance, cross-platform desktop application for plotting, visual editing, and analyzing CSV/Excel datasets using Matplotlib and PyQt6. Available in both 2D and 3D visualization modes.
✨ Key Features
- PyQt6 Architecture: Modern OS-native look & feel, dark/light theme support, high performance, and 100% crash-free cross-platform execution on macOS, Linux, and Windows.
- Multi X-Axis Tabs: Configure multiple dataset tabs on a single plot, each with its own X-column and Y1/Y2 series, overlaid seamlessly on one shared graph.
- Non-Destructive Data Filtering: Filter data ranges dynamically without corrupting or altering your raw loaded dataset.
- Integrated Data Sheet: Embedded
QTableWidgetspreadsheet viewer to inspect, edit, and update dataset rows and columns in real-time. - 2D & 3D Visualization Modes:
- 2D: Line, Scatter, Bar, Step, Stem, Area, Pie, Box, Violin, Heatmap, Contour, and Polar plots.
- 3D: Surface, Wireframe, Scatter 3D, Line 3D, and Contour 3D plots.
- Rich Style & Graph Controls:
- Independent per-series style controls (Color, Line Style, Line Width, Marker Style, Marker Size, Alpha/Opacity, Legend Labels).
- Axis formatting (rotate X-tick labels, plain numeric formatting without scientific notation, custom major tick intervals).
- Customizable colormaps (
viridis,plasma,inferno,coolwarm,jet,turbo, etc.). - High-DPI Image Export (72 to 1200 DPI PNG, PDF, SVG).
- Legend font size, location, and spine toggle controls.
- Moving Average Line Smoothing, Error Bars, and Data Point Value Annotations.
- Fast Series Selection: Y1/Y2 (and 3D Z) column pickers with Select All / Clear buttons, a live selection counter, and lists tall enough to browse without hunting.
- Scrollable Settings Panel: Every settings tab scrolls, so no control is ever cut off on a small window.
- Double-Click to Reset Zoom: Double-click the plot to drop any zoom/pan and redraw at the configured axis limits.
- Project Serialization: Save and restore complete workspace states including all dataset modifications and multi-X-tab configurations using
.pmggrpJSON project files. - Native Drag & Drop: Drag CSV, TSV, Excel (
.xlsx/.xls), JSON, or project (.pmggrp) files directly into the window to open.
💾 Installation
Install from PyPI
pip install hygrapher
Install for Development
git clone https://github.com/HiroYokoyama/matplotlib_graph_app.git
cd matplotlib_graph_app/hygrapher
pip install -e .[dev]
🚀 Usage
Command Line Interface
Launch 2D mode:
hygrapher
Launch 2D mode with a dataset or project file:
hygrapher data.csv
hygrapher my_project.pmggrp
Launch 3D mode:
hygrapher-3d
hygrapher-3d data.csv
Python Entrypoint
python -m hygrapher
python -m hygrapher.main_3d
🏗️ Architecture & Modules
matplotlib_graph_app/
├── .github/
│ └── workflows/
│ └── ci.yml # Automated CI matrix testing & PyPI tag publishing
├── hygrapher/
│ ├── pyproject.toml # Packaging metadata & entrypoints
│ ├── hygrapher/
│ │ ├── __init__.py # Package version & exports
│ │ ├── __main__.py # CLI entrypoint
│ │ ├── main.py # 2D Application main window (PyQt6 QMainWindow)
│ │ ├── main_3d.py # 3D Application main window (mplot3d & QMainWindow)
│ │ ├── data_manager.py # Non-destructive data storage & range filter engine
│ │ ├── project_io.py # .pmggrp JSON project serialization & deserialization
│ │ ├── widgets.py # Shared Qt building blocks (series picker, scroll wrapper)
│ │ └── utils.py # Cross-platform ticker math & font manager helpers
│ └── tests/
│ ├── conftest.py # Pytest configuration & offscreen Qt setup
│ ├── test_app_headless.py # 38 fine-grained PyQt6 application tests
│ ├── test_series_picker_ui.py # Series picker, scrolling & zoom-reset tests
│ ├── test_data_manager.py
│ ├── test_project_io.py
│ ├── test_unit_comprehensive.py
│ └── test_utils.py
└── README.md
🧪 Testing & CI/CD
Run Unit Tests Locally
cd hygrapher
pytest -v --cov=hygrapher
Build & Release Workflow
The repository includes automated GitHub Actions CI/CD (.github/workflows/ci.yml):
- Runs unit tests and coverage across Linux, macOS, and Windows matrix.
- Automated PyPI Publishing: Pushing any tag matching
v*(e.g.v0.7.0) automatically builds wheels and publishes the release package to PyPI.
# Release a new version:
git tag v0.7.0
git push origin v0.7.0
📄 License
GNU General Public License v3.0 (GPL-3.0). Created by Hiromichi Yokoyama.
Metadata
Release files for hygrapher 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hygrapher-0.10.0.tar.gz | 56.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hygrapher-0.10.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 103.6 kB
Release files / hygrapher-0.10.0.tar.gz
| Download URL | hygrapher-0.10.0.tar.gz |
|---|---|
| Size | 56.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb09b56cba36df021720d7edcdea1028508a5f7b3cc10c2018d39a282a6f6981
|
|
BLAKE2b-256 checksum How to use checksums |
856cb3169a2b5c561cbb07c5f48db910551a3db90ff35fdcb8b5d06a9d92e92f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.
Transparency logRelease files / hygrapher-0.10.0-py3-none-any.whl
| Download URL | hygrapher-0.10.0-py3-none-any.whl |
|---|---|
| Size | 47.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
212b357094ace5bf62e1b9bb8d0fbf68780527a45bdc2a4abbb772ff42918397
|
|
BLAKE2b-256 checksum How to use checksums |
be499f1da6a74678648729efb9fdd9db3b52306efd167b916fe3b8db0d7049cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 20, 2026.
Transparency log