Skip to content

Commit

Permalink
Merge pull request #293 from kayjan/v0.21.0
Browse files Browse the repository at this point in the history
Update docs on plotting
  • Loading branch information
kayjan authored Aug 25, 2024
2 parents c446f8c + f2c94b5 commit 9f28d87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion bigtree/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/gettingstarted/demo/tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f28d87

Please sign in to comment.