phylogenie 2.1.22__py3-none-any.whl → 2.1.23__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.
phylogenie/draw.py CHANGED
@@ -53,9 +53,10 @@ def draw_tree(
53
53
  coloring: str | Coloring | None = None,
54
54
  default_color: Color = "black",
55
55
  cmap: str | None = None,
56
- show_legend: bool = True,
57
56
  vmin: float | None = None,
58
57
  vmax: float | None = None,
58
+ show_legend: bool = True,
59
+ legend_kwargs: dict[str, Any] | None = None,
59
60
  show_hist: bool = True,
60
61
  hist_kwargs: dict[str, Any] | None = None,
61
62
  hist_axes_kwargs: dict[str, Any] | None = None,
@@ -101,7 +102,9 @@ def draw_tree(
101
102
  ]
102
103
  if any(color_by not in node.features for node in tree):
103
104
  legend_handles.append(mpatches.Patch(color=default_color, label="NA"))
104
- ax.legend(handles=legend_handles) # pyright: ignore
105
+ if legend_kwargs is None:
106
+ legend_kwargs = {}
107
+ ax.legend(handles=legend_handles, **legend_kwargs) # pyright: ignore
105
108
 
106
109
  return _draw_colored_tree(tree, ax, colors)
107
110
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: phylogenie
3
- Version: 2.1.22
3
+ Version: 2.1.23
4
4
  Summary: Generate phylogenetic datasets with minimal setup effort
5
5
  Author: Gabriele Marino
6
6
  Author-email: gabmarino.8601@gmail.com
@@ -1,5 +1,5 @@
1
1
  phylogenie/__init__.py,sha256=8ulA-U7-WnBLNsqRYqPOPrJG8X4ZzyEU02oaDbR_Hxs,2849
2
- phylogenie/draw.py,sha256=F0XCHn9ARpWuG1t9dwi7sNc7meBQYfKUgAnNsBm3tXU,5132
2
+ phylogenie/draw.py,sha256=WCjr_HCn-wCuxwkDhHA9Ijl1Sm6av6FBLkyR0MK2bVM,5271
3
3
  phylogenie/generators/__init__.py,sha256=zsOxy28-9j9alOQLIgrOAFfmM58NNHO_NEtW-KXQXAY,888
4
4
  phylogenie/generators/alisim.py,sha256=0aCLuGInifWgAvfh7zARWSKF4EMw3TjlPXMLSECui0k,2783
5
5
  phylogenie/generators/configs.py,sha256=WFoeKpgj9ZQIom7BKqwpgXbriiQGg3jFBMLoD8KButk,1073
@@ -28,8 +28,8 @@ phylogenie/treesimulator/model.py,sha256=Nyg6R8XmMwZMSw1-dII81sU9uU7tDe-NMs8v1qK
28
28
  phylogenie/typeguards.py,sha256=JtqmbEWJZBRHbWgCvcl6nrWm3VcBfzRbklbTBYHItn0,1325
29
29
  phylogenie/typings.py,sha256=GknvAFXyiaWeeYJ8Lk5d6E2VHT-xW6ONEojYbtJYiB8,476
30
30
  phylogenie/utils.py,sha256=ehVk_2kvjW8Q_EyM2kxBPHYiK-KlPmZQx7JeVN6Fh-E,5419
31
- phylogenie-2.1.22.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
32
- phylogenie-2.1.22.dist-info/METADATA,sha256=QgoaWVi9EtxzC1LHpAP7Kt4NyQoH6m8HjdNWGtLEvB8,5477
33
- phylogenie-2.1.22.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
- phylogenie-2.1.22.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
35
- phylogenie-2.1.22.dist-info/RECORD,,
31
+ phylogenie-2.1.23.dist-info/LICENSE.txt,sha256=NUrDqElK-eD3I0WqC004CJsy6cs0JgsAoebDv_42-pw,1071
32
+ phylogenie-2.1.23.dist-info/METADATA,sha256=ym-NHK9hkvBR4kH_KGCnLnckV_iEzvFk0fdMzrkVudQ,5477
33
+ phylogenie-2.1.23.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
34
+ phylogenie-2.1.23.dist-info/entry_points.txt,sha256=Rt6_usN0FkBX1ZfiqCirjMN9FKOgFLG8rydcQ8kugeE,51
35
+ phylogenie-2.1.23.dist-info/RECORD,,