html generator following directory structure you saved figures
Project description
Overview
fig_html generates minimal html files from directories where figures were saved.
Requirement
python >= 3.6
numpy
pandas
matplotlib
jinja2 >= 2.10
The matplotlib is only for making sample figures.
Usage
Suppose we saved figures in a directory hierarchicaly.
SampleFiguresMaker makes sample figures and directory.
from fig_html.utils import SampleFiguresMaker
root_dir = "./outputs"
SampleFiguresMaker().make(root_dir)
└── outputs
├── correlation
│ ├── correlation
│ │ ├── fig1.png
│ │ ├── fig2.png
│ │ └── fig3.png
│ ├── fig1.png
│ ├── fig2.png
│ └── fig3.png
└── histogram
├── histogram1.png
├── histogram2.png
└── histogram3.png
HTMLMaker adds html file in each directory like below.
from fig_html import HTMLMaker
root_dir = "./outputs"
HTMLMaker().make(root_dir)
└── outputs
├── _static
│ └── basestyle.css
├── correlation
│ ├── correlation
│ │ ├── correlation.html
│ │ ├── fig1.png
│ │ ├── fig2.png
│ │ └── fig3.png
│ ├── correlation.html
│ ├── fig1.png
│ ├── fig2.png
│ └── fig3.png
├── histogram
│ ├── histogram.html
│ ├── histogram1.png
│ ├── histogram2.png
│ └── histogram3.png
└── outputs.html
Now we can check figures easily like this.
Project details
Release history Release notifications | RSS feed
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 fig_html-0.0.1.tar.gz.
File metadata
- Download URL: fig_html-0.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84f2607d17f4cf00ea74e642887d9052775bc0baaf88e8e784b82d13f113b143
|
|
| MD5 |
669b80b28b0d31e3a5d2819287447600
|
|
| BLAKE2b-256 |
513ea8bcaaa641a88f77d2a04d35dc0489bb6ac8b2e74796b3410f3b6bf4ce44
|
File details
Details for the file fig_html-0.0.1-py3-none-any.whl.
File metadata
- Download URL: fig_html-0.0.1-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96441d6279ce0151eda4c8189498b2559c85d35a643bc16a2dc7e7801f307c64
|
|
| MD5 |
7576858433c68692af072df6f7ff15c1
|
|
| BLAKE2b-256 |
37d0482d35164a249004a3e55d6049ac6d80f3fca3942ddadb63582f7ef877f5
|