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

Uploaded Source

Built Distribution

nxviz-0.7.4-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nxviz-0.7.4.tar.gz
  • Upload date:
  • Size: 564.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.10.1

File hashes

Hashes for nxviz-0.7.4.tar.gz
Algorithm Hash digest
SHA256 9499b8feadffe257fef580c8300c74e5dd902924901e8050f96b0ad15f18eb22
MD5 a5cf7f30102fdb42b49abdfebe8d8c5c
BLAKE2b-256 94d77635769f432b35d7cb05a16847ee6f0e64416476a552c91e56afe579666f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nxviz-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/0.0.0 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.10.1

File hashes

Hashes for nxviz-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 251c0f740187c6b5c16c41681fae844c3afb3aaf60a1107b5340811367adec0f
MD5 f12b821ccb00581c78acf556ab135528
BLAKE2b-256 00cafb05ec7a4dad9a8789d60edb84a2a4203589d2edbf4ff437445e5d18a5d9

See more details on using hashes here.

Supported by

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