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:
- Prioritize node placement, mapping data to position and visual properties,
- Draw in edges, mapping data to visual properties,
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nxviz-0.7.0.tar.gz
.
File metadata
- Download URL: nxviz-0.7.0.tar.gz
- Upload date:
- Size: 563.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25f666ca0931fbcfb173415ce50546d095f779a98be873b19f91ce1483ec188c |
|
MD5 | 2c85cd96b949adb1841632980983ff01 |
|
BLAKE2b-256 | 18155da0f4865626e6d543a0c8947335f721183bb06aeacc656d7937e1a9bb30 |
File details
Details for the file nxviz-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: nxviz-0.7.0-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/0.0.0 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d98f6614060839f7c3f5819a1fa76c6d0cd6c33d7bd0226f4e3a4ee0aab5028a |
|
MD5 | 039c04d4ca2d2a31fbdc60aa416cd80f |
|
BLAKE2b-256 | 61643fb5f11b634cf8a2bc61a2f49faa1ca760ab4920003089a59ff3b0e90217 |