Skip to main content

nxviz: Composable and rational network visualizations in matplotlib

nxviz is a package for building rational network visualizations using matplotlib as a backend. Inspired heavily by the principles espoused in the grammar of graphics, nxviz provides ways to compose a graph visualization together by adhering to the following recipe:

  1. Prioritize node placement, mapping data to position and visual properties,
  2. Draw in edges, mapping data to visual properties,
  3. Add in annotations and highlights on the graph.

nxviz is simultaneously a data visualization research project, art project, and declarative data visualization tool. We hope you enjoy using it to build beautiful graph visualizations.

Installation

Official Releases

nxviz is available on PyPI:

pip install nxviz

It's also available on conda-forge:

conda install -c conda-forge nxviz

Pre-releases

Pre-releases are done by installing directly from git:

pip install git+https://github.com/ericmjl/nxviz.git

Quickstart

To make a Circos plot:

# We assume you have a graph G that is a NetworkX graph object.
# In this example, all nodes possess the "group" and "value" node attributes
# where "group" is categorical and "value" is continuous,
# and all edges have the "edge_value" node attribute as well.

import nxviz as nv
ax = nv.circos(
    G,
    group_by="group",
    sort_by="value",
    node_color_by="group",
    edge_alpha_by="edge_value"
)

nv.annotate.circos_group(G, group_by="group")

For more examples, including other plots that can be made, please see the examples gallery on the docs.

Metadata

Release files for nxviz 0.9.0

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

Source distribution (sdist)

Source distribution for nxviz 0.9.0
File Size Uploaded
nxviz-0.9.0.tar.gz 2.1 MB Details

Built distribution (wheel)

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

Total release size: 2.2 MB

Release files / nxviz-0.9.0.tar.gz

Download URL nxviz-0.9.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
c124805acf97b8b66a70be51299967dac5ad92ad8e9987971a5b74c196235e40
BLAKE2b-256 checksum
How to use checksums
fea450c2ed983334b319ba54610bd4b115ac5d10821956023c9fd1b32962b388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / nxviz-0.9.0-py3-none-any.whl

Download URL nxviz-0.9.0-py3-none-any.whl
Size 44.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c42461387cec323ab0fe42260dd7168ed1877b62b527edda719e09e4fdadaadb
BLAKE2b-256 checksum
How to use checksums
78058ead2a3575fe05a34d37bd242d39870967c18da281fb7cc3686e4c59606f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.9.0 This release

2 release files

0.8.0

2 release files

0.7.6

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.0

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.11

1 release file

0.2.10

1 release file

0.2.9

1 release file

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release 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