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.7.6.tar.gz (23.9 kB view details)

Uploaded Source

Built Distribution

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

nxviz-0.7.6-py2.py3-none-any.whl (29.2 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: nxviz-0.7.6.tar.gz
  • Upload date:
  • Size: 23.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for nxviz-0.7.6.tar.gz
Algorithm Hash digest
SHA256 67ad63a7254699154c31ef2f4dbfe5e2af575f1bca9cbb7f7285507900cb4f7b
MD5 68179e7b9774989bbfe924b5923c2586
BLAKE2b-256 91fb87eca283b53c4e514356b652745dd5fb499ca8b5a585990627de190b04f0

See more details on using hashes here.

File details

Details for the file nxviz-0.7.6-py2.py3-none-any.whl.

File metadata

  • Download URL: nxviz-0.7.6-py2.py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for nxviz-0.7.6-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4c7df6acd49689c84de4451258b0d9adcf8183bdebd913f32f579df40a0e8ce6
MD5 f563be1577c06c31d3eefeaeba64977a
BLAKE2b-256 0f6e5313e2acfa6ae820cb1c2bc6c266c102eadafd1ee5c3571c69cf48b79bd6

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