iplotx 0.0.1__py3-none-any.whl → 0.1.0__py3-none-any.whl

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/plotting.py CHANGED
@@ -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):
iplotx/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.1"
1
+ __version__ = "0.1.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
@@ -18,10 +18,18 @@ Classifier: Programming Language :: Python :: 3.8
18
18
  Classifier: Programming Language :: Python :: 3.9
19
19
  Classifier: Programming Language :: Python :: 3.10
20
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Requires-Python: >=3.10
21
22
  Requires-Dist: matplotlib>=2.0.0
22
23
  Requires-Dist: pandas>=2.0.0
24
+ Provides-Extra: igraph
25
+ Requires-Dist: igraph>=0.11.0; extra == 'igraph'
26
+ Provides-Extra: networkx
27
+ Requires-Dist: networkx>=2.0.0; extra == 'networkx'
23
28
  Description-Content-Type: text/markdown
24
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
+
25
33
  # iplotx
26
34
  Plotting networks from igraph and networkx.
27
35
 
@@ -3,10 +3,10 @@ iplotx/groups.py,sha256=PplZgemEEg7b285fwV--08yIIomRTgg0xxyvvHeoBp8,4289
3
3
  iplotx/heuristics.py,sha256=bnfetQRxZA-Ii2V61XH7VYnvvG6DyKqiH2iOsA5la9o,3810
4
4
  iplotx/importing.py,sha256=GCzbQ4X8BAk0Cv9Nue-B-3vHiCmGHmF6pVPIVRUhGI8,267
5
5
  iplotx/network.py,sha256=jipKjV6NtVteUoqeSTRc1kfkmRfTT0L8uEPCLt_ipJ4,18070
6
- iplotx/plotting.py,sha256=Isdvxb8tAGhWPNHiEC-KG9TQb5C1_5s_F9C7NGP-p5Y,3389
6
+ iplotx/plotting.py,sha256=wyPrDPMNscuiCdO0Md--ZSU6_uJ3XnCTJg8yKIYnm5g,3481
7
7
  iplotx/styles.py,sha256=lHn-NRQ0CkG7dWe-J1wuGa-rH8ut4dqBa8rLGbqk1Ig,4679
8
8
  iplotx/typing.py,sha256=0RrZqEKsC9rSnPQIKg-br1g2w5wDVpTzrlx04rKnN0Y,1304
9
- iplotx/version.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
9
+ iplotx/version.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
10
10
  iplotx/vertex.py,sha256=qP6V9eAoC6zb9uD00sxUlIWnEPbMxLeQRJoiKVCubLU,3485
11
11
  iplotx/edge/arrow.py,sha256=gUvTXVFG8e9G0qeztljqHVTZwYSCrhIDj0HGq3anenk,3876
12
12
  iplotx/edge/common.py,sha256=62CCsA_1z9qhKIgSEbnfxzj9elKxPDv0REbLewKnnqo,1445
@@ -15,6 +15,6 @@ iplotx/edge/label.py,sha256=rutePN_WEIT8IR7FSRrvsoIJw2WoFWDSHCh0dmHeJTI,1407
15
15
  iplotx/edge/undirected.py,sha256=LfDHqUP5zEBuf69lyOhUU_tk5ZGCJyw5xL3eZnTk7OU,14799
16
16
  iplotx/utils/geometry.py,sha256=3HIsH_Nek_m41vL7twvgmDYfhlJURYd5TbMaa15nyt8,7804
17
17
  iplotx/utils/matplotlib.py,sha256=I4Lw6vMPIgKMyqcR6RQBiRPKnmi5ko_GAtG04cT5XPw,3972
18
- iplotx-0.0.1.dist-info/METADATA,sha256=xG3Y-FukA2CGxLHBB5t33kxnT56rbxlpDpsfvZQ-J1A,1932
19
- iplotx-0.0.1.dist-info/WHEEL,sha256=tkmg4JIqwd9H8mL30xA7crRmoStyCtGp0VWshokd1Jc,105
20
- iplotx-0.0.1.dist-info/RECORD,,
18
+ iplotx-0.1.0.dist-info/METADATA,sha256=UMVggqiCw-xHPHY7s5ACPBnjIeWLl-COy01CjB0MEyw,2252
19
+ iplotx-0.1.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
20
+ iplotx-0.1.0.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
2
  Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
- Tag: py2-none-any
5
4
  Tag: py3-none-any