Skip to main content

Graph Visualization Package

Project description

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.

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

nxviz-0.8.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

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

nxviz-0.8.0-py3-none-any.whl (37.3 kB view details)

Uploaded Python 3

File details

Details for the file nxviz-0.8.0.tar.gz.

File metadata

  • Download URL: nxviz-0.8.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nxviz-0.8.0.tar.gz
Algorithm Hash digest
SHA256 eff45a6b7e7882cb48b3cd9c250717794dbb9b93904685bca19895f6b0f3b18e
MD5 21ae23d881745dfd7267f66258cfea10
BLAKE2b-256 1df98607d9018f7378e895dba9c0a8f2cac0e01f86b9cb97ee900bb2a7e8be03

See more details on using hashes here.

File details

Details for the file nxviz-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: nxviz-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 37.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for nxviz-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 48ba275aab54d3e55a84bacb3815badfa686fd2b96776ddcf5279be64f7fa115
MD5 472830c04700e97728bca90d5039b215
BLAKE2b-256 97b1ba3a7e74e2ad3a8a5b490502ce7f45394f30d01a51c4fcdfc9ffb3950c42

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