iplotx

Universal network and tree visualisation library.

MIT 39 个版本 Python >=3.10
安装
pip install iplotx
poetry add iplotx
pipenv install iplotx
conda install iplotx
描述

Github Actions PyPI - Version RTD Coverage Status pylint DOI

iplotx

Banner.

Visualise networks and trees in Python, with style.

Supports:

In addition to the above, any network or tree analysis library can register an entry point to gain compatibility with iplotx with no intervention from our side.

Installation

pip install iplotx

Quick Start

import networkx as nx
import matplotlib.pyplot as plt
import iplotx as ipx

g = nx.Graph([(0, 1), (1, 2), (2, 3), (3, 4), (4, 0)])
layout = nx.layout.circular_layout(g)
ipx.plot(g, layout)

Quick start image

Documentation

See documentation and gallery.

Citation

If you use iplotx for publication figures, please cite:

F. Zanini. A universal tool for visualisation of networks and trees in Python. F1000Research 2025, 14:1377. https://doi.org/10.12688/f1000research.173131.1

Features

  • Plot networks from multiple libraries including networkx, igraph and graph-tool, using Matplotlib. ✅
  • Plot trees from multiple libraries such as cogent3, ETE4, phyloframe, skbio, biopython, and dendropy. ✅
  • Flexible yet easy styling, including an internal library of styles ✅
  • Interactive plotting, e.g. zooming and panning after the plot is created. ✅
  • Store the plot to disk in many formats (SVG, PNG, PDF, GIF, etc.). ✅
  • 3D network visualisation with depth shading. ✅
  • Efficient plotting of large graphs (up to ~1 million nodes on a laptop). ✅
  • Edit plotting elements after the plot is created, e.g. changing node colors, labels, etc. ✅
  • Animations, e.g. showing the evolution of a network over time. ✅
  • Mouse and keyboard interaction, e.g. hovering over nodes/edges to get information about them. ✅
  • Node clustering and covers, e.g. showing communities in a network. ✅
  • Edge tension, edge waypoints, and edge ports. ✅
  • Choice of tree layouts and orientations. ✅
  • Tree-specific options: cascades, subtree styling, split edges, etc. ✅
  • (WIP) Support uni- and bi-directional communication between graph object and plot object.🏗️

Authors

Fabio Zanini (https://fabilab.org)

版本列表
1.8.0 2026-05-04
1.7.1 2026-02-20
1.7.0 2026-02-04
1.6.0 2025-11-24
1.5.1 2025-11-12
1.5.0 2025-11-09
1.4.2 2025-10-31
1.4.1 2025-10-30
1.4.0 2025-10-29
1.3.0 2025-10-28
1.2.1 2025-10-23
1.2.0 2025-10-21
1.1.0 2025-10-20
1.0.1 2025-10-17
1.0.0 2025-10-16
0.12.0 2025-10-09
0.11.1 2025-10-02
0.11.0 2025-10-02
0.10.0 2025-10-01
0.9.0 2025-09-25
0.8.0 2025-09-25
0.7.0 2025-09-24
0.6.8 2025-09-21
0.6.7 2025-09-21
0.6.6 2025-09-20
0.6.5 2025-09-03
0.6.4 2025-08-26
0.6.3 2025-08-26
0.6.2 2025-08-14
0.6.1 2025-07-28
0.5.1 2025-07-20
0.5.0 2025-07-19
0.4.0 2025-07-11
0.3.1 2025-06-23
0.3.0 2025-06-23
0.2.1 2025-06-16
0.2.0 2025-06-15
0.1.0 2025-05-25
0.0.1 2025-05-25