ASCII plotting¶
[1]:
from physt import examples
from physt import plotting
plotting.set_default_backend("ascii")
import numpy as np
np.random.seed(42)
[2]:
examples.normal_h1().plot(show_values=True)
▏ 10
█ 88
████ 485
█████████████ 1605
███████████████████████ 2831
███████████████████████ 2844
████████████ 1543
████ 498
█ 88
▏ 8
[3]:
examples.normal_h2().plot(cmap='Greys')
4.48 →
┌──────────┐
│██████████│3.69 ↑
│██████████│
│██████████│
│██████████│
│██████████│
│██████████│
│██████████│
│██████████│
│██████████│
│██████████│-3.66 ↓
└──────────┘
← -3.86
↓0
████████████
879 ↑