Skip to main content

HYGrapher (2D & 3D)

HYGrapher CI/CD PyPI version License: GPL v3

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 QTableWidget spreadsheet 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.
  • Project Serialization: Save and restore complete workspace states including all dataset modifications and multi-X-tab configurations using .pmggrp JSON 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
│   │   └── 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_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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hygrapher-0.9.0.tar.gz (53.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hygrapher-0.9.0-py3-none-any.whl (45.1 kB view details)

Uploaded Python 3

File details

Details for the file hygrapher-0.9.0.tar.gz.

File metadata

  • Download URL: hygrapher-0.9.0.tar.gz
  • Upload date:
  • Size: 53.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hygrapher-0.9.0.tar.gz
Algorithm Hash digest
SHA256 134ceccfbf3db6feb64b43f55b692527e0acf681187ec266e87044c754788a49
MD5 ed3b55d11c725451669bc13684733034
BLAKE2b-256 07e205791677eb93cd5b23fa26cab140dbbdcc24148d9d597dbe62f7178c66a9

See more details on using hashes here.

Provenance

The following attestation bundles were made for hygrapher-0.9.0.tar.gz:

Publisher: ci.yml on HiroYokoyama/matplotlib_graph_app

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hygrapher-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: hygrapher-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 45.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for hygrapher-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 438ea016859e93dc091ec985d473bfa8d5f9740b5340efa86e715cd3e2ff0c6f
MD5 b24c0660f7970c890e96fd21704d2bcb
BLAKE2b-256 f8f8d49377298bd764dbd1189019f3cb91e8829118efe74c522e64fdf1a0db57

See more details on using hashes here.

Provenance

The following attestation bundles were made for hygrapher-0.9.0-py3-none-any.whl:

Publisher: ci.yml on HiroYokoyama/matplotlib_graph_app

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.10.0

2 files

This release

0.9.0 This release

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page