Skip to main content

pyxtviz

Panel-data visualisation for Python: from a declared panel to a finished figure in one line, with full control of the result.

Trajectories of a sample of countries, two highlighted, and the mean by year

xv.lines(panel, "growth", highlight=["C03", "C17"])

A sample of the units, two of them named, and the mean by year: one line.

Status: 0.0.1 in preparation, not on PyPI yet. It will be published once, with every figure of the catalogue. The core and the figures written so far are tested; see PLAN.md and CATALOGUE.md.

pyxtviz is the visualisation companion of pyxtpanel, the foundation for panel-data management and tests. It aims at 50 to 100 useful graphics for panel data (86 are planned), each one answering a question that a panel analyst really asks.

A first figure

import pyxtpanel as xt
import pyxtviz as xv

panel = xt.xtset(frame, "country", "year")  # a declared panel, as in pyxtpanel

xv.lines(panel, "growth")  # trajectories of a sample of units, and the mean
xv.distribution(panel, "growth")  # spread between units and within units
xv.scatter(panel, "income", "growth")  # between and within relations
xv.states(panel, "reform")  # who is in which state, when (returns an Axes)
xv.attrition(panel)  # entries, exits and survival of the units

xv.list_kinds()  # the figures that exist
xv.set_theme("slides")  # the look of every figure from now on
xv.lines(panel, "growth", lang="fr", theme="dark")  # one figure in French, on a dark page
xv.states(panel, "reform", ax=my_axes)  # draw inside your own axes
xv.data.attrition(panel).to_frame()  # the numbers behind a figure
  • One line for a finished figure: sensible defaults (variables, sample of units, labels, language). Leave the variable out and a numeric one that changes over time is chosen, with a warning.
  • Full control: every function returns matplotlib objects (an Axes for a figure of one panel, a Figure otherwise); change anything afterwards, or draw into your own axes with ax=.
  • Ten themes (xv.list_themes()), four palettes checked for colour-blind readers, English and French (decimal comma included). See the gallery of themes.
  • What seaborn does not do for panels: between and within decompositions, one line per unit, unit-by-period maps, balance and gaps, treatment roll-out and event windows, panel diagnostics (cross-sectional dependence, unit roots by unit, residual normality).
  • Light and checked: figures are computed by tested functions (pyxtviz.data), compared with pyxtpanel, pandas and hand-computed panels; nothing is left in matplotlib's global settings.

All the figures, with the code that draws them: docs/gallery/figures.md. Which question, which figure: docs/guide.md. The documentation, with examples that are run by the tests: docs/documentation.md. Runnable scripts: examples/.

Install

Not published yet. From a clone of the repository, in an environment with Python 3.10 or later:

pip install -e .           # also installs pyxtpanel, numpy, pandas, scipy and matplotlib

Learn more

Licence

MIT, see LICENSE; credits in NOTICE.md.

Metadata

Release files for pyxtviz 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyxtviz 0.0.1
File Size Uploaded Provenance Actions
pyxtviz-0.0.1.tar.gz 445.0 kB With provenance Details for pyxtviz-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pyxtviz 0.0.1
File Interpreter ABI Platform Actions
pyxtviz-0.0.1-py3-none-any.whl Python 3 none any Details for pyxtviz-0.0.1-py3-none-any.whl

Total release size: 1.0 MB

Release files / pyxtviz-0.0.1.tar.gz

Download URL pyxtviz-0.0.1.tar.gz
Size 445.0 kB
Tags Source
SHA-256 checksum
How to use checksums
30390cd15e8a7d5c2c9a075d7653adb1152cc5d97fb6fb1359cfb3670f333214
BLAKE2b-256 checksum
How to use checksums
d5b9691602c763db7b752d1622c3547b371d042528f3a2c9fdf980afb37fb198
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 6, 2026.

Transparency log

Release files / pyxtviz-0.0.1-py3-none-any.whl

Download URL pyxtviz-0.0.1-py3-none-any.whl
Size 579.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2401a40ed176a836ceea83a3a96a3ec81fc24eeb09cbb3733515e4ac03d75df6
BLAKE2b-256 checksum
How to use checksums
5b13b32b7d6caf8321c89d46be0ac123af5950b122c5188a3b7022a4e35664f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Dec 6, 2026.

Transparency log

Security for pyxtviz 0.0.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pyxtviz-0.0.1.tar.gz

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 Dec 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files Full provenance

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