Skip to main content

Jarvis-PLOT: YAML-driven plotting engine

Project description

Jarvis-PLOT

Jarvis-PLOT is a lightweight, Python/Matplotlib-based plotting framework developed for Jarvis-HEP,
but it can also be used as a standalone scientific plotting tool.

It provides a simple command-line interface (CLI) to generate publication-quality figures from YAML configuration files, with most layout and style decisions handled by predefined profiles and style cards.


Installation

pip install Jarvis-PLOT

The PyPI distribution name is now Jarvis-PLOT. The Python import package and entrypoint remain unchanged:

import jarvisplot
jplot path/to/config.yaml

If you have an older environment that still uses the historical package name, replace:

pip uninstall jarvisplot
pip install Jarvis-PLOT

Command-Line Usage

Display help information:

jplot -h

Run Jarvis-PLOT with one or more YAML configuration files:

jplot path/to/config.yaml

Rebuild local cache for the current project workdir:

jplot path/to/config.yaml --rebuild-cache

Project Workdir and Cache

  • You can set project.workdir in YAML.
  • If output.dir is omitted, Jarvis-PLOT defaults to <workdir>/plots/.
  • Data cache is stored in <workdir>/.cache/.
  • Profiling pipelines are prebuilt once and reused from cache when source fingerprint and profile settings are unchanged.
  • Profiling uses a fast two-stage grid reduction (pregrid + render bin) for large datasets.

Example: SUSYRun2 Ternary Plots

jplot ./bin/SUSYRun2_EWMSSM.yaml
jplot ./bin/SUSYRun2_GEWMSSM.yaml

Note: The data file paths inside the YAML files must be updated to match your local setup.

Example: Dynesty Runplot

Jarvis-PLOT includes a reusable dynesty runplot format. With a dataset named dynesty, the figure can use the built-in card without writing axes or layer details:

DataSet:
- name: dynesty
  path: path/to/dynesty_result.csv
  type: csv

Figures:
- name: dynesty_logL_vs_logX
  enable: true
  style:
  - a4paper_2x1
  - dynesty_runplot

See docs/specs/DYNESTY_RUNPLOT.md for the default axes, KDE, scatter overlay, and evidence summary behavior.


Notes

  • Figures are saved automatically to the output paths defined in the YAML configuration.
  • Common output formats include PNG and PDF (backend-dependent).
  • Jarvis-PLOT works in headless environments (SSH, batch jobs) without any GUI backend.

Requirements

Python

  • Python ≥ 3.10 (tested on 3.10–3.13)

Required Packages

  • numpy
  • pandas
  • matplotlib
  • pyyaml
  • jsonschema
  • scipy — numerical utilities
  • h5py — required for loading HDF5 data files
  • shapely
  • scipy
  • sympy

Github Page

https://github.com/Pengxuan-Zhu-Phys/Jarvis-PLOT

Documentation

https://pengxuan-zhu-phys.github.io/Jarvis-Docs/

Repository Docs

Tracked project docs live in docs/.

  • docs/README.md - repo doc index
  • docs/context/JARVIS_PLOT_CONTEXT.md - primary Codex-facing boundary doc
  • docs/context/CODE_MAP_JARVIS_PLOT.md - concrete code owner map
  • docs/context/JARVIS_PLOT_FRAMEWORK_LOGIC.md - runtime execution contract
  • docs/roadmap/IMPLEMENTATION_ROADMAP.md - active backlog and future work list
  • docs/dev/DEVELOPER_RULES.md - current pipeline and cache rules
  • docs/dev/MEMORY_OPTIMIZATION_GUIDE.md - narrow-table memory notes

Read the context docs and roadmap before changing parsing, transforms, rendering, or layout-related behavior.


License

MIT License

Project details


Download files

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

Source Distribution

jarvisplot-1.3.8.tar.gz (843.4 kB view details)

Uploaded Source

Built Distribution

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

jarvisplot-1.3.8-py3-none-any.whl (852.6 kB view details)

Uploaded Python 3

File details

Details for the file jarvisplot-1.3.8.tar.gz.

File metadata

  • Download URL: jarvisplot-1.3.8.tar.gz
  • Upload date:
  • Size: 843.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for jarvisplot-1.3.8.tar.gz
Algorithm Hash digest
SHA256 7333f01b8d2f46ef0eba2c276e789192ddc61b7abd732c8ee7160b4873c8722b
MD5 7f8cf70838d08c45de346507ab2ec938
BLAKE2b-256 c6883011ba76d2251084a0213185760121f6e2cb201d7bdbe71549b2d723a3dd

See more details on using hashes here.

File details

Details for the file jarvisplot-1.3.8-py3-none-any.whl.

File metadata

  • Download URL: jarvisplot-1.3.8-py3-none-any.whl
  • Upload date:
  • Size: 852.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for jarvisplot-1.3.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d845489d7a0706152b8b3d350af3f97970161ba776f0a2cd717a5b7164f8712f
MD5 621786daae08c3082bc654f20916599f
BLAKE2b-256 975447019f665852487c318c8536c92ce4d87b604769b8dff6af004978cc1469

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page