Horizon Chart

GPU Temperature Horizon

Hardware monitoring horizon chart showing GPU temperature under load with fire orange gradient.

Output
GPU Temperature Horizon
Python
import matplotlib.pyplot as plt
import numpy as np

COLORS = {
    'bands': ['#4d1a00', '#993300', '#F54927', '#FB923C'],
    'background': '#0a0a0f',
    'text': '#ffffff',
}

np.random.seed(1818)
seconds = np.arange(0, 1800)  # 30 minutes of gaming
load_pattern = 60 + 25 * (1 - np.exp(-seconds/300))
game_load = 5 * np.sin(seconds * np.pi / 60)
spikes = np.random.choice([0, 1], size=len(seconds), p=[0.98, 0.02]) * np.random.uniform(5, 10, len(seconds))
temp = load_pattern + game_load + spikes + np.random.normal(0, 2, len(seconds))
temp = np.clip(temp, 40, 95)
temp_norm = (temp - 40) / 55

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

band = 0.25

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

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

ax.set_title('GPU Temperature (°C)', color=COLORS['text'], fontsize=12, fontweight='bold', pad=10)
ax.set_xlabel('Time (minutes)', color=COLORS['text'], fontsize=10)
ax.set_ylabel('Temp (°C)', color='white', fontsize=10)
ax.set_xticks([0, 300, 600, 900, 1200, 1500, 1800])
ax.set_xticklabels(['0', '5', '10', '15', '20', '25', '30'])

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