PyTorch Heatmap Visualizer for 1D Vectors and 2D Matrix Tensors
Project description
PyTorch TUI Heatmap Visualizer for 1D Vectors and 2D Matrix Tensors
a = torch.rand(40,20)
heater.plot(a, theme='heatmap')
b = torch.linspace(0,1, steps=800).view(40,20)
heater.plot(b, theme='heatmap')
Reference Charcodes for TUI
## Code Result Description
## U+2580 ▀ Upper half block
## U+2581 ▁ Lower one eighth block
## U+2582 ▂ Lower one quarter block
## U+2583 ▃ Lower three eighths block
## U+2584 ▄ Lower half block
## U+2585 ▅ Lower five eighths block
## U+2586 ▆ Lower three quarters block
## U+2587 ▇ Lower seven eighths block
## U+2588 █ Full block
## U+2589 ▉ Left seven eighths block
## U+258A ▊ Left three quarters block
## U+258B ▋ Left five eighths block
## U+258C ▌ Left half block
## U+258D ▍ Left three eighths block
## U+258E ▎ Left one quarter block
## U+258F ▏ Left one eighth block
## U+2590 ▐ Right half block
## U+2591 ░ Light shade
## U+2592 ▒ Medium shade
## U+2593 ▓ Dark shade
#
# a = torch.rand(10,10)
# heater.plot(a) __init__.py
# ▄▄▄▄▄▄▄▄▄▄▄▄
# █ ░▓▒▓█▒█
# █ ░▒▓█▒░ █
# █ ░▒▓█▒░ █
# █ ░▒▓█▒░ █
# ▀▀▀▀▀▀▀▀▀▀▀▀ ▒
# ▀▀▀▀▀▀▀▀▀▒▒▒▒▒▒
# ╭━━━━━━━━━━━━━━━━━━╮
# ┃░▒ ▓ ▇ ▒ ┃
# ┃ ▒ ▓ ┃
# ┃ ▒ ┃
# ┃ ▒ ▄ ┃
# ┃ ▒ ▅ ┃
# ┃ ▒ ▆ ┃
# ╰━━━━━━━━━━━━━━━━━━╯
# ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ ─ │
# ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬ ═ ║
# ╭ ╮ ╯ ╰╯
# ┏ ┓ ┗ ┛ ┣ ┫ ┳ ┻ ╋ ━ ┃
# ▖
# ▗
# ▘
# ▙
# ▚
# ▛▀▀▀▀▀▀▀▀▄▄▄▄▜
# ▙▄▟
# ▜
# ▝
# ▞
# ▟
#
# ▚
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 heater_plot-0.1.0.tar.gz.
File metadata
- Download URL: heater_plot-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69e17b23fd0cf655ead03adaf22ae7b4c90359f2defbcba0b6180f216bb4d9b7
|
|
| MD5 |
5a59842f621fb61f16994d01d901d7ad
|
|
| BLAKE2b-256 |
c281a3f14fb1f480d1c85b904640691d1ebeb1a368ecb61b9c35761e463acba0
|
Provenance
The following attestation bundles were made for heater_plot-0.1.0.tar.gz:
Publisher:
publish.yaml on stephenlb/heater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heater_plot-0.1.0.tar.gz -
Subject digest:
69e17b23fd0cf655ead03adaf22ae7b4c90359f2defbcba0b6180f216bb4d9b7 - Sigstore transparency entry: 1551050738
- Sigstore integration time:
-
Permalink:
stephenlb/heater@3c6475f2c4adc3922565f4ca874403c349299dc9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stephenlb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3c6475f2c4adc3922565f4ca874403c349299dc9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file heater_plot-0.1.0-py3-none-any.whl.
File metadata
- Download URL: heater_plot-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd871c2131d949ea244b3b3a3a30586b1ca3842e1728ece1186f4179e0b8e88d
|
|
| MD5 |
b1e42969b94cf0652e9cb7d7545ce822
|
|
| BLAKE2b-256 |
97f619ee0a67b330a7f084a0cb1b21503be0515018bc02bec211071c8e8dfc68
|
Provenance
The following attestation bundles were made for heater_plot-0.1.0-py3-none-any.whl:
Publisher:
publish.yaml on stephenlb/heater
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
heater_plot-0.1.0-py3-none-any.whl -
Subject digest:
cd871c2131d949ea244b3b3a3a30586b1ca3842e1728ece1186f4179e0b8e88d - Sigstore transparency entry: 1551050742
- Sigstore integration time:
-
Permalink:
stephenlb/heater@3c6475f2c4adc3922565f4ca874403c349299dc9 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/stephenlb
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yaml@3c6475f2c4adc3922565f4ca874403c349299dc9 -
Trigger Event:
release
-
Statement type: