diff --git a/CHANGELOG.md b/CHANGELOG.md index 05f06979..3487a8d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -## [0.21.0] - TBD +## [0.21.0] - 2024-08-26 ### Added: - Tree Plot: Plot tree using matplotlib library, added matplotlib as optional dependency. - BaseNode: Add plot method. diff --git a/bigtree/__init__.py b/bigtree/__init__.py index cffa4ea7..e653fff5 100644 --- a/bigtree/__init__.py +++ b/bigtree/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.20.1" +__version__ = "0.21.0" from bigtree.binarytree.construct import list_to_binarytree from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag diff --git a/docs/gettingstarted/demo/tree.md b/docs/gettingstarted/demo/tree.md index e8d02f75..8d3d008d 100644 --- a/docs/gettingstarted/demo/tree.md +++ b/docs/gettingstarted/demo/tree.md @@ -524,6 +524,7 @@ Below is the table of operations available to `BaseNode` and `Node` classes. | Get attribute | `root.get_attr("description")` | 'root-tag' | | Copy tree | `root.copy()` | None | | Sort children | `root.sort(key=lambda node: node.node_name, reverse=True)` | None | +| Plot tree | `root.plot("-ok")` | plt.Figure() | ## Traverse Tree