Stream Graph
Container Orchestration Usage Stream
Stream visualization of container orchestration platform adoption.
Output
Python
import matplotlib.pyplot as plt
import numpy as np
COLORS = {
'background': '#0a0a0f',
'text': '#ffffff',
'grid': '#333333',
}
np.random.seed(3333)
quarters = np.arange(0, 24)
kubernetes = 30 + 2.5 * quarters + np.random.normal(0, 2, 24)
docker_swarm = 25 - 0.5 * quarters + np.random.normal(0, 2, 24)
openshift = 15 + 0.8 * quarters + np.random.normal(0, 1, 24)
rancher = 10 + 0.6 * quarters + np.random.normal(0, 1, 24)
nomad = 5 + 0.4 * quarters + np.random.normal(0, 0.5, 24)
data = [np.clip(d, 1, None) for d in [kubernetes, docker_swarm, openshift, rancher, nomad]]
colors = ['#326CE5', '#2496ED', '#EE0000', '#0075A8', '#00CA8E']
fig, ax = plt.subplots(figsize=(14, 6), facecolor=COLORS['background'])
ax.set_facecolor(COLORS['background'])
ax.stackplot(quarters, *data, colors=colors, alpha=0.85, baseline='sym',
labels=['Kubernetes', 'Docker Swarm', 'OpenShift', 'Rancher', 'Nomad'])
ax.axhline(0, color=COLORS['grid'], linewidth=0.5, alpha=0.5)
ax.set_xlim(0, 23)
ax.set_title('Container Orchestration Platform Adoption', color=COLORS['text'], fontsize=14, fontweight='bold', pad=15)
ax.set_xlabel('Quarter', color=COLORS['text'], fontsize=11)
ax.set_ylabel('Market Share (%)', color=COLORS['text'], fontsize=11)
ax.legend(loc='upper center', bbox_to_anchor=(0.5, -0.12), frameon=False,
labelcolor=COLORS['text'], fontsize=9, ncol=5)
for spine in ax.spines.values():
spine.set_visible(False)
ax.tick_params(colors=COLORS['text'], labelsize=9)
plt.tight_layout()
plt.subplots_adjust(bottom=0.18)
plt.show()
Library
Matplotlib
Category
Time Series
More Stream Graph examples
☕