Horizon Chart

Crypto Trading Volume Horizon

Bitcoin trading volume horizon chart with lime green neon bands showing market activity intensity.

Output
Crypto Trading Volume Horizon
Python
import matplotlib.pyplot as plt
import numpy as np

COLORS = {
    'bands': ['#1a3d1a', '#2d6b2d', '#4ade80', '#6CF527'],
    'background': '#0a0a0f',
    'text': '#ffffff',
}

np.random.seed(222)
hours = np.arange(0, 720)  # 30 days in hours
# Crypto volume with spikes
base_volume = 50 + 20 * np.sin(hours * np.pi / 12)
spikes = np.random.choice([0, 1], size=len(hours), p=[0.95, 0.05]) * np.random.uniform(30, 80, len(hours))
volume = base_volume + spikes + np.random.normal(0, 10, len(hours))
volume = np.clip(volume, 0, 150)
volume_norm = volume / 150

fig, ax = plt.subplots(figsize=(14, 3), facecolor=COLORS['background'])
ax.set_facecolor(COLORS['background'])

band = 0.25

ax.fill_between(hours, 0, np.clip(volume_norm, 0, band), color=COLORS['bands'][0])
ax.fill_between(hours, 0, np.clip(volume_norm - band, 0, band), color=COLORS['bands'][1])
ax.fill_between(hours, 0, np.clip(volume_norm - 2*band, 0, band), color=COLORS['bands'][2])
ax.fill_between(hours, 0, np.clip(volume_norm - 3*band, 0, band), color=COLORS['bands'][3])

ax.set_xlim(0, 719)
ax.set_ylim(0, 0.3)

ax.set_title('BTC Trading Volume (30 Days)', color=COLORS['text'], fontsize=12, fontweight='bold', pad=10)
ax.set_xlabel('Day', color=COLORS['text'], fontsize=10)
ax.set_ylabel('Volume', color=COLORS['text'], fontsize=10)
ax.set_xticks([0, 168, 336, 504, 672])
ax.set_xticklabels(['Day 1', 'Week 1', 'Week 2', 'Week 3', 'Week 4'])

for spine in ax.spines.values():
    spine.set_visible(False)
ax.tick_params(colors=COLORS['text'], labelsize=9)

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

Time Series

Did this help you?

Support PyLucid to keep it free & growing

Support