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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| nxviz-0.9.0.tar.gz | 2.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|