Metadata-Version: 2.4
Name: heater-plot
Version: 0.1.4
Summary: PyTorch & NumPy Heatmap Visualizer for 1D Vectors and 2D Matrix Tensors
Author-email: Stephen Blum <blum.stephen@gmail.com>
License: Copyright 2026 Stephen Blum
        
        Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
        
Project-URL: Homepage, https://github.com/stephenlb/heater
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

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

```bash
pip install heater-plot
```

```python
a = torch.rand(40,20)
heater.plot(a, theme='heatmap')
```

![Example Heatmap](https://raw.githubusercontent.com/stephenlb/heater/main/images/example1.png)


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

![Example Heatmap](https://raw.githubusercontent.com/stephenlb/heater/main/images/example2.png)


### 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 |

```python
heater.plot(a, theme='viridis')
heater.plot(a, theme='ocean')
heater.plot(a, theme='coolwarm')
```


### Reference Charcodes for TUI

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

# ▗
# ▘
# ▙

# ▚

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

# ▜

# ▝
# ▞

# ▟
#  
# ▚
```
