3D Bar Chart
Satellite Bandwidth Allocation
Data throughput across orbital slots and frequency bands
Output
Python
import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.colors import LinearSegmentedColormap
fig = plt.figure(figsize=(12, 8), facecolor='#0a0a0f')
ax = fig.add_subplot(111, projection='3d')
ax.set_facecolor('#0a0a0f')
slots = 5
bands = 4
xpos = np.arange(slots)
zpos = np.arange(bands)
xpos, zpos = np.meshgrid(xpos, zpos)
xpos = xpos.flatten()
zpos = zpos.flatten()
ypos = np.zeros_like(xpos)
dx = 0.6
dz = 0.6
np.random.seed(654)
dy = np.random.gamma(5, 200, size=20)
cmap = LinearSegmentedColormap.from_list('neon', ['#5314E6', '#4927F5', '#27D3F5', '#27F5B0'])
norm = plt.Normalize(min(dy), max(dy))
colors = [cmap(norm(v)) for v in dy]
ax.bar3d(xpos, ypos, zpos, dx, dy, dz, color=colors, alpha=0.9, edgecolor='#1a1a2e', linewidth=0.4)
ax.set_xlabel('Orbital Slot', fontsize=11, color='white', labelpad=12)
ax.set_ylabel('Throughput (Gbps)', fontsize=11, color='white', labelpad=12)
ax.set_zlabel('Frequency', fontsize=11, color='white', labelpad=10)
ax.set_title('Satellite Bandwidth Distribution', fontsize=14, color='white', fontweight='bold', pad=20)
ax.set_xticks(range(5))
ax.set_xticklabels(['LEO-1', 'LEO-2', 'MEO', 'GEO-E', 'GEO-W'], fontsize=8, color='#888888')
ax.set_zticks(range(4))
ax.set_zticklabels(['C-band', 'Ku', 'Ka', 'V-band'], fontsize=8, color='#888888')
ax.tick_params(colors='#888888', labelsize=9)
ax.xaxis.pane.fill = False
ax.yaxis.pane.fill = False
ax.zaxis.pane.fill = False
ax.xaxis.pane.set_edgecolor('#333333')
ax.yaxis.pane.set_edgecolor('#333333')
ax.zaxis.pane.set_edgecolor('#333333')
ax.grid(True, alpha=0.2, linewidth=0.5)
ax.view_init(elev=20, azim=55)
plt.tight_layout()
plt.show()
Library
Matplotlib
Category
3D Charts
More 3D Bar Chart examples
☕