ReporTree produces nested static HTML reports with buttons to navigate through many optional subpages.
Project description
ReporTree: Nested HTML reports for Matplotlib
ReporTree produces nested static HTML reports with buttons to navigate through many nested pages.
Older version
The package can easily produce reports with many nested levels and hundreds of Matplotlib plots.
Basic example
import reportree as rt
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
fig1, ax1 = plt.subplots()
sns.lineplot(x=np.arange(10), y=np.arange(10), marker='o', ax=ax1, color='red')
ax1.set_title('Upward')
fig2, ax2 = plt.subplots()
sns.lineplot(x=np.arange(10), y=np.arange(10, 0, -1), marker='o', ax=ax2, color='blue')
ax2.set_title('Downward')
l1 = rt.Leaf([fig1, fig2], title='Leaf example')
l1.save('/tmp/example1')
l2 = rt.Leaf(fig1, title='Only upward')
l3 = rt.Leaf(fig2, title='Only downward')
b1 = rt.Branch([l1, l2, l3], title='Branch example')
b1.save('/tmp/example2')
b2 = rt.Branch([rt.Branch([b1, l1]), l2, l3, b1], title='Nested example')
b2.save('/tmp/example3')
The code produces following reports:
Leaf example
Branch example
Nested example
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reportree-0.0.9.tar.gz.
File metadata
- Download URL: reportree-0.0.9.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.4-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65ca4ea5b7550a334db0923cc476bf5d38b18b44c18ff29a10bfe808034bfad5
|
|
| MD5 |
7f13f9eae3c79e12ab55f6ec2aa36f21
|
|
| BLAKE2b-256 |
4071c3996a3f41b227b0f5b8113d3a23423551f79b3521a8dc1e761b3b6a8dc8
|
File details
Details for the file reportree-0.0.9-py3-none-any.whl.
File metadata
- Download URL: reportree-0.0.9-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.4-arch2-1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b2aa57389b7ce378ccbef89519af993ecba4d739217c61cb15839e56e6fd880
|
|
| MD5 |
fb9f1f9cb10165b1928b2866032cefbc
|
|
| BLAKE2b-256 |
579456c1ba90dfeaf124fa3d165ef2a43a95e654e0ca098c8d4956c6edff667e
|