https://github.com/ekalosak/nx3d
A 3D plotting library for networkx
https://github.com/ekalosak/nx3d
3d graph networkx panda3d plotting python visualization
Last synced: about 2 months ago
JSON representation
A 3D plotting library for networkx
- Host: GitHub
- URL: https://github.com/ekalosak/nx3d
- Owner: ekalosak
- License: mit
- Created: 2022-09-14T00:45:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-03T22:30:50.000Z (about 3 years ago)
- Last Synced: 2024-04-17T00:07:12.311Z (almost 2 years ago)
- Topics: 3d, graph, networkx, panda3d, plotting, python, visualization
- Language: Python
- Homepage:
- Size: 25.1 MB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# nx3d
[](https://github.com/ekalosak/nx3d)
[](https://nx3d.readthedocs.io/en/latest/)
[](https://pypi.org/project/nx3d/)
[](https://github.com/ekalosak/nx3d/actions)
[](https://nx3d.readthedocs.io/en/latest/maturity.html)
[](https://pypistats.org/packages/nx3d)
A 3D plotting library for `networkx` built on `panda3d`.

# Installation
```sh
pip install nx3d
```
# Check your installation
## The four nx.Graph classes
### nx.Graph demo
```sh
python -m nx3d
```
### nx.DiGraph demo
```sh
python -m nx3d dir
```
### nx.MultiGraph demo
```sh
python -m nx3d mul
```
### nx.MultiDiGraph demo
```sh
python -m nx3d mul dir
```
## Dynamic graph processes
### Diffusion demo
```sh
python -m nx3d diffusion watt nolabel
```
### Game of Life demo
```sh
python -m nx3d life nofilter
```
# Usage
In your Python code:
```python
import networkx as nx
import nx3d
g = nx.frucht_graph()
nx3d.plot(g)
```
# Next steps
Check out the [docs](https://nx3d.readthedocs.io/en/latest/) for tutorials, how-to-guides, explanations, and reference
material.