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.
Files changed (31) hide show
  1. {iplotx-0.0.1 → iplotx-0.1.0}/PKG-INFO +4 -1
  2. {iplotx-0.0.1 → iplotx-0.1.0}/README.md +3 -0
  3. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/plotting.py +5 -4
  4. iplotx-0.1.0/iplotx/version.py +1 -0
  5. iplotx-0.0.1/iplotx/version.py +0 -1
  6. {iplotx-0.0.1 → iplotx-0.1.0}/.github/workflows/publish.yml +0 -0
  7. {iplotx-0.0.1 → iplotx-0.1.0}/.github/workflows/test.yml +0 -0
  8. {iplotx-0.0.1 → iplotx-0.1.0}/.gitignore +0 -0
  9. {iplotx-0.0.1 → iplotx-0.1.0}/LICENSE +0 -0
  10. {iplotx-0.0.1 → iplotx-0.1.0}/MANIFEST.in +0 -0
  11. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/__init__.py +0 -0
  12. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/arrow.py +0 -0
  13. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/common.py +0 -0
  14. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/directed.py +0 -0
  15. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/label.py +0 -0
  16. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/edge/undirected.py +0 -0
  17. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/groups.py +0 -0
  18. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/heuristics.py +0 -0
  19. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/importing.py +0 -0
  20. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/network.py +0 -0
  21. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/styles.py +0 -0
  22. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/typing.py +0 -0
  23. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/utils/geometry.py +0 -0
  24. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/utils/matplotlib.py +0 -0
  25. {iplotx-0.0.1 → iplotx-0.1.0}/iplotx/vertex.py +0 -0
  26. {iplotx-0.0.1 → iplotx-0.1.0}/pyproject.toml +0 -0
  27. {iplotx-0.0.1 → iplotx-0.1.0}/tests/baseline_images/test_igraph/graph_basic.png +0 -0
  28. {iplotx-0.0.1 → iplotx-0.1.0}/tests/baseline_images/test_igraph/graph_directed.png +0 -0
  29. {iplotx-0.0.1 → iplotx-0.1.0}/tests/test_igraph.py +0 -0
  30. {iplotx-0.0.1 → iplotx-0.1.0}/tests/utils.py +0 -0
  31. {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.1
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
+ ![Github Actions](https://github.com/fabilab/iplotx/actions/workflows/test.yml/badge.svg)
31
+ ![PyPI - Version](https://img.shields.io/pypi/v/iplotx)
32
+
30
33
  # iplotx
31
34
  Plotting networks from igraph and networkx.
32
35
 
@@ -1,3 +1,6 @@
1
+ ![Github Actions](https://github.com/fabilab/iplotx/actions/workflows/test.yml/badge.svg)
2
+ ![PyPI - Version](https://img.shields.io/pypi/v/iplotx)
3
+
1
4
  # iplotx
2
5
  Plotting networks from igraph and networkx.
3
6
 
@@ -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
- styles: Sequence[Union[str, dict]] = (),
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
- **style: Additional keyword arguments are treated as style for the objects to plot.
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(styles):
41
- with stylecontext(styles):
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"
@@ -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