https://github.com/davidayotte/bruhat-tits
Bruhat-Tits tree plotter using Python Imaging Library
https://github.com/davidayotte/bruhat-tits
Last synced: 3 months ago
JSON representation
Bruhat-Tits tree plotter using Python Imaging Library
- Host: GitHub
- URL: https://github.com/davidayotte/bruhat-tits
- Owner: DavidAyotte
- License: mit
- Created: 2020-05-04T19:05:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-01T19:51:40.000Z (over 2 years ago)
- Last Synced: 2025-01-17T01:38:06.766Z (4 months ago)
- Language: Python
- Homepage:
- Size: 183 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bruhat-Tits
Bruhat-Tits tree plotter (see [wikipedia](https://en.wikipedia.org/wiki/Building_(mathematics))). This is how I generated my profile picture.## Functions
* `angle_rel`: utility function to compute the angle between tree branches;
* `Tree`: draw using [PIL](https://pillow.readthedocs.io/en/stable/) the branches of the tree (uses recursion);
* `BT_Tree`: first draw the base of the tree and then use the `Tree` function to complete the Bruhat-Tits tree.