iplotx 0.0.1__tar.gz → 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {iplotx-0.0.1 → iplotx-0.1.0}/PKG-INFO +4 -1
- {iplotx-0.0.1 → iplotx-0.1.0}/README.md +3 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/plotting.py +5 -4
- iplotx-0.1.0/iplotx/version.py +1 -0
- iplotx-0.0.1/iplotx/version.py +0 -1
- {iplotx-0.0.1 → iplotx-0.1.0}/.github/workflows/publish.yml +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/.github/workflows/test.yml +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/.gitignore +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/LICENSE +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/MANIFEST.in +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/__init__.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/arrow.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/common.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/directed.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/label.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/undirected.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/groups.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/heuristics.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/importing.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/network.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/styles.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/typing.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/utils/geometry.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/utils/matplotlib.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/vertex.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/pyproject.toml +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/tests/baseline_images/test_igraph/graph_basic.png +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/tests/baseline_images/test_igraph/graph_directed.png +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/tests/test_igraph.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/tests/utils.py +0 -0
- {iplotx-0.0.1 → iplotx-0.1.0}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: iplotx
|
|
3
|
-
Version: 0.0
|
|
3
|
+
Version: 0.1.0
|
|
4
4
|
Summary: Plot networkx from igraph and networkx.
|
|
5
5
|
Project-URL: Homepage, https://github.com/fabilab/iplotx
|
|
6
6
|
Project-URL: Documentation, https://readthedocs.org/iplotx
|
|
@@ -27,6 +27,9 @@ Provides-Extra: networkx
|
|
|
27
27
|
Requires-Dist: networkx>=2.0.0; extra == 'networkx'
|
|
28
28
|
Description-Content-Type: text/markdown
|
|
29
29
|
|
|
30
|
+

|
|
31
|
+

|
|
32
|
+
|
|
30
33
|
# iplotx
|
|
31
34
|
Plotting networks from igraph and networkx.
|
|
32
35
|
|
|
@@ -20,7 +20,7 @@ def plot(
|
|
|
20
20
|
vertex_labels: Union[None, list, dict, pd.Series] = None,
|
|
21
21
|
edge_labels: Union[None, Sequence] = None,
|
|
22
22
|
ax: Union[None, object] = None,
|
|
23
|
-
|
|
23
|
+
style: Sequence[Union[str, dict]] = (),
|
|
24
24
|
):
|
|
25
25
|
"""Plot this network using the specified layout.
|
|
26
26
|
|
|
@@ -32,18 +32,19 @@ def plot(
|
|
|
32
32
|
should be the vertex IDs and the values should be the labels.
|
|
33
33
|
edge_labels (Union[None, Sequence], optional): The labels for the edges. If None, no edge labels will be drawn. Defaults to None.
|
|
34
34
|
ax (Union[None, object], optional): The axis to plot on. If None, a new figure and axis will be created. Defaults to None.
|
|
35
|
-
|
|
35
|
+
style: Apply this style for the objects to plot. This can be a sequence (e.g. list) of styles and they will be applied in order.
|
|
36
36
|
|
|
37
37
|
Returns:
|
|
38
38
|
A NetworkArtist object.
|
|
39
39
|
"""
|
|
40
|
-
if len(
|
|
41
|
-
with stylecontext(
|
|
40
|
+
if len(style) or isinstance(style, dict):
|
|
41
|
+
with stylecontext(style):
|
|
42
42
|
return plot(
|
|
43
43
|
network=network,
|
|
44
44
|
layout=layout,
|
|
45
45
|
grouping=grouping,
|
|
46
46
|
edge_labels=edge_labels,
|
|
47
|
+
ax=ax,
|
|
47
48
|
)
|
|
48
49
|
|
|
49
50
|
if (network is None) and (grouping is None):
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|
iplotx-0.0.1/iplotx/version.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|