Skip to main content

PyTorch & NumPy TUI Heatmap Visualizer for 1D Vectors and 2D Matrix Tensors

pip install heater-plot
a = torch.rand(40,20)
heater.plot(a, theme='heatmap')

Example Heatmap

b = torch.linspace(0,1, steps=800).view(40,20)
heater.plot(b, theme='heatmap')

Example Heatmap

Themes

Pass any of these as theme=:

Theme Description
heatmap Default purple → pink → orange → yellow
rainbow Full spectrum red → violet
viridis Perceptually uniform purple → green → yellow
plasma Purple → magenta → orange → yellow
magma Black → purple → pink → cream
inferno Black → red → orange → pale yellow
fire Black → red → orange → yellow
ocean Deep blue → cyan → white
forest Dark green → lime → yellow
coolwarm Blue → white → red diverging
grayscale Black → white
heater.plot(a, theme='viridis')
heater.plot(a, theme='ocean')
heater.plot(a, theme='coolwarm')

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
# ▄▄▄▄▄▄▄▄▄▄▄▄
# █    ░▓▒▓█▒█
# █   ░▒▓█▒░ █
# █  ░▒▓█▒░  █
# █ ░▒▓█▒░   █
# ▀▀▀▀▀▀▀▀▀▀▀▀ ▒
# ▀▀▀▀▀▀▀▀▀▒▒▒▒▒▒
# ╭━━━━━━━━━━━━━━━━━━╮
# ┃░▒  ▓  ▇  ▒       ┃
# ┃ ▒  ▓             ┃
# ┃ ▒                ┃
# ┃ ▒  ▄             ┃
# ┃ ▒  ▅             ┃
# ┃ ▒  ▆             ┃
# ╰━━━━━━━━━━━━━━━━━━╯
# ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼ ─ │
# ╔ ╗ ╚ ╝ ╠ ╣ ╦ ╩ ╬ ═ ║
# ╭ ╮ ╯ ╰╯
# ┏ ┓ ┗ ┛ ┣ ┫ ┳ ┻ ╋ ━ ┃
# ▖

# ▗
# ▘
# ▙

# ▚

# ▛▀▀▀▀▀▀▀▀▄▄▄▄▜
# ▙▄▟

# ▜

# ▝
# ▞

# ▟
#  
# ▚

Metadata

Release files for heater-plot 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heater-plot 0.1.5
File Size Uploaded
heater_plot-0.1.5.tar.gz 4.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heater-plot 0.1.5
File Interpreter ABI Platform
heater_plot-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 9.6 kB

Release files / heater_plot-0.1.5.tar.gz

Download URL heater_plot-0.1.5.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
e5a0c848424b8efad8f8a6422e2c0af579dcb9171c82c75479a2d6530e705b6b
BLAKE2b-256 checksum
How to use checksums
3bd9dd1c15f260942d95a1ad248c1f404c461191583a39f9fd13704598f0b087
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release files / heater_plot-0.1.5-py3-none-any.whl

Download URL heater_plot-0.1.5-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67933925a848dc4ffaf499f018a1c7f2342ba5dab60f8ceb0f15786df7719323
BLAKE2b-256 checksum
How to use checksums
c61b49ff44bdeee3f4bb196a3345c579661471e9400f2aecf438b80b5368cd18
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page