iplotx 0.6.1__py3-none-any.whl → 0.6.3__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/ingest/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
1
  """
2
- This module focuses on how to ingest network data into standard data structures no matter what library they come from.
2
+ This module focuses on how to ingest network/tree data into standard data structures no matter what library they come from.
3
3
  """
4
4
 
5
5
  import pathlib
iplotx/utils/geometry.py CHANGED
@@ -42,14 +42,15 @@ def convex_hull(points):
42
42
  pass
43
43
 
44
44
  # Otherwise, try scipy
45
- try:
46
- from scipy.spatial import ConvexHull
47
-
48
- # NOTE: scipy guarantees counterclockwise ordering in 2D
49
- # https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.ConvexHull.html
50
- hull_idx = ConvexHull(points).vertices[::-1]
51
- except ImportError:
52
- pass
45
+ if hull_idx is None:
46
+ try:
47
+ from scipy.spatial import ConvexHull
48
+
49
+ # NOTE: scipy guarantees counterclockwise ordering in 2D
50
+ # https://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.ConvexHull.html
51
+ hull_idx = ConvexHull(points).vertices[::-1]
52
+ except ImportError:
53
+ pass
53
54
 
54
55
  # Last resort: our own Graham scan
55
56
  if hull_idx is None:
iplotx/version.py CHANGED
@@ -2,4 +2,4 @@
2
2
  iplotx version information module.
3
3
  """
4
4
 
5
- __version__ = "0.6.1"
5
+ __version__ = "0.6.3"
iplotx/vertex.py CHANGED
@@ -232,10 +232,12 @@ class VertexCollection(PatchCollection):
232
232
  else:
233
233
  cmap_fun = None
234
234
 
235
- if style.get("size", 20) == "label":
235
+ size_tmp = style.get("size", 20)
236
+ if isinstance(size_tmp, str) and (size_tmp == "label"):
236
237
  if self._labels is None:
237
238
  warnings.warn("No labels found, cannot resize vertices based on labels.")
238
239
  style["size"] = get_style("default.vertex")["size"]
240
+ del size_tmp
239
241
 
240
242
  if "cmap" in style:
241
243
  colorarray = []
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: iplotx
3
- Version: 0.6.1
3
+ Version: 0.6.3
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
@@ -11,7 +11,7 @@ Author-email: Fabio Zanini <fabio.zanini@unsw.edu.au>
11
11
  Maintainer-email: Fabio Zanini <fabio.zanini@unsw.edu.au>
12
12
  License: MIT
13
13
  Keywords: graph,network,plotting,visualisation
14
- Classifier: Development Status :: 4 - Beta
14
+ Classifier: Development Status :: 5 - Production/Stable
15
15
  Classifier: Intended Audience :: Developers
16
16
  Classifier: Intended Audience :: Education
17
17
  Classifier: Intended Audience :: Science/Research
@@ -41,6 +41,8 @@ Description-Content-Type: text/markdown
41
41
  ![RTD](https://readthedocs.org/projects/iplotx/badge/?version=latest)
42
42
  [![Coverage Status](https://coveralls.io/repos/github/fabilab/iplotx/badge.svg?branch=main)](https://coveralls.io/github/fabilab/iplotx?branch=main)
43
43
  ![pylint](assets/pylint.svg)
44
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.16599333.svg)](https://doi.org/10.5281/zenodo.16599333)
45
+
44
46
 
45
47
  # iplotx
46
48
  [![Banner](docs/source/_static/banner.png)](https://iplotx.readthedocs.io/en/latest/gallery/index.html).
@@ -61,8 +63,6 @@ Supports:
61
63
 
62
64
  In addition to the above, *any* network or tree analysis library can register an [entry point](https://iplotx.readthedocs.io/en/latest/providers.html#creating-a-custom-data-provider) to gain compatibility with `iplotx` with no intervention from our side.
63
65
 
64
- **NOTE**: This is currently late beta quality software. The API and functionality might break rarely.
65
-
66
66
  ## Installation
67
67
  ```bash
68
68
  pip install iplotx
@@ -8,14 +8,14 @@ iplotx/network.py,sha256=SlmDgc4tbCfvO08QWk-jUXrUfaz6S3xoXQVg6rP1910,11345
8
8
  iplotx/plotting.py,sha256=yACxkD6unKc5eDsAp7ZabRCAwLEXBowSMESX2oGNBDU,7291
9
9
  iplotx/tree.py,sha256=S_9tf8Mixv9P5dq616tjxuxdDYRmUXLNAcSXTxEgm_I,27310
10
10
  iplotx/typing.py,sha256=QLdzV358IiD1CFe88MVp0D77FSx5sSAVUmM_2WPPE8I,1463
11
- iplotx/version.py,sha256=-RIxhq0u_OIWuuL1r2NIRGXU4sIysn0a1kSTyr99UZE,66
12
- iplotx/vertex.py,sha256=OjDIkJCNU-IhZUVeZTSzGwTlHLrxu27lUThiUuEb6Qs,14497
11
+ iplotx/version.py,sha256=gW_u6lRwj4KIbPx67ruzLLRpDenwhHbtNXux-VvZFYg,66
12
+ iplotx/vertex.py,sha256=T9j8Copv88cbh6ztC8uSGo4tIVERuHYEIeHf53Uh2aE,14578
13
13
  iplotx/edge/__init__.py,sha256=VkAsuxphQa-co79MZWzWErkRAkp97CwB20ozPEnpvrM,26888
14
14
  iplotx/edge/arrow.py,sha256=C4XoHGCYou1z2alz5Q2VhdaWYEzgebtEF70zVYY_frk,15533
15
15
  iplotx/edge/geometry.py,sha256=tiaF4PzvsNBoROrEgcCsw0YdxxZr3oBxF4ord_k4ThA,15069
16
16
  iplotx/edge/leaf.py,sha256=SyGMv2PIOoH0pey8-aMVaZheK3hNe1Qz_okcyWbc4E4,4268
17
17
  iplotx/edge/ports.py,sha256=BpkbiEhX4mPBBAhOv4jcKFG4Y8hxXz5GRtVLCC0jbtI,1235
18
- iplotx/ingest/__init__.py,sha256=tsXDoa7Rs6Y1ulWtjCcUsO4tQIigeQ6ZMiU2PQDyhwQ,4751
18
+ iplotx/ingest/__init__.py,sha256=S0YfnXcFKseB7ZBQc4yRt0cNDsLlhqdom0TmSY3OY2E,4756
19
19
  iplotx/ingest/heuristics.py,sha256=715VqgfKek5LOJnu1vTo7RqPgCl-Bb8Cf6o7_Tt57fA,5797
20
20
  iplotx/ingest/typing.py,sha256=hVEcAREjFFFbAWsxRkQuvpy1B4L7JEv_NRVVmrEbUVk,13984
21
21
  iplotx/ingest/providers/network/igraph.py,sha256=8dWeaQ_ZNdltC098V2YeLXsGdJHQnBa6shF1GAfl0Zg,2973
@@ -29,10 +29,10 @@ iplotx/ingest/providers/tree/skbio.py,sha256=O1KUr8tYi28pZ3VVjapgO4Uj-YpMuix3GhO
29
29
  iplotx/style/__init__.py,sha256=XMkQZ1U63wVNo98Zo5uJAn-uQgW2OTZABAizJqiuB3s,12253
30
30
  iplotx/style/leaf_info.py,sha256=JoX1cPjRM_k3f93jzUPQ3gPlVP4wY_n032nOVhrgelU,969
31
31
  iplotx/style/library.py,sha256=wO-eeY3EZfAl0v21aX9f5_MiZhHuL2kGsBYA3uJkIGs,8535
32
- iplotx/utils/geometry.py,sha256=UH2gAcM5rYW7ADnJEm7HIJTpPF4UOm8P3vjSVCOGjqM,9192
32
+ iplotx/utils/geometry.py,sha256=6RrC6qaB0-1vIk1LhGA4CfsiMd-9JNniSPyL_l9mshE,9245
33
33
  iplotx/utils/internal.py,sha256=WWfcZDGK8Ut1y_tOHRGg9wSqY1bwSeLQO7dHM_8Tvwo,107
34
34
  iplotx/utils/matplotlib.py,sha256=TutVJ1dEWYgX_-CY6MvdhRvWYqxpByGb3TKrSByYPNM,5330
35
35
  iplotx/utils/style.py,sha256=wMWxJykxBD-JmcN8-rSKlWcV6pMfwKgR4EzSpk_NX8k,547
36
- iplotx-0.6.1.dist-info/METADATA,sha256=5dZyYbSXKvtleKuGG30m_h4wmmkcxjnhZ-XAbhmXtrg,4889
37
- iplotx-0.6.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
- iplotx-0.6.1.dist-info/RECORD,,
36
+ iplotx-0.6.3.dist-info/METADATA,sha256=ZD9xX3oeygjd73nbUbb_-9bK_sF5LLIZKCuhezZwD4w,4908
37
+ iplotx-0.6.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
38
+ iplotx-0.6.3.dist-info/RECORD,,
File without changes