Skip to content

Commit 9f28d87

Browse files
authored
Merge pull request #293 from kayjan/v0.21.0
Update docs on plotting
2 parents c446f8c + f2c94b5 commit 9f28d87

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
## [0.21.0] - TBD
9+
## [0.21.0] - 2024-08-26
1010
### Added:
1111
- Tree Plot: Plot tree using matplotlib library, added matplotlib as optional dependency.
1212
- BaseNode: Add plot method.

bigtree/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.20.1"
1+
__version__ = "0.21.0"
22

33
from bigtree.binarytree.construct import list_to_binarytree
44
from bigtree.dag.construct import dataframe_to_dag, dict_to_dag, list_to_dag

docs/gettingstarted/demo/tree.md

+1
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ Below is the table of operations available to `BaseNode` and `Node` classes.
524524
| Get attribute | `root.get_attr("description")` | 'root-tag' |
525525
| Copy tree | `root.copy()` | None |
526526
| Sort children | `root.sort(key=lambda node: node.node_name, reverse=True)` | None |
527+
| Plot tree | `root.plot("-ok")` | plt.Figure() |
527528

528529
## Traverse Tree
529530

0 commit comments

Comments
 (0)