data_2d = [[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], [6, 7, 8, 9, 10, 11, 12, 13, 14,
    15], [11, 12, 13, 14, 15, 16, 17, 18, 19, 20], [16, 17, 18, 19, 20, 21,
    22, 23, 24, 25], [21, 22, 23, 24, 25, 26, 27, 28, 29, 30]]
data_array = np.array(data_2d)
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x_data, y_data = np.meshgrid(np.arange(data_array.shape[1]), np.arange(
    data_array.shape[0]))
x_data = x_data.flatten()
y_data = y_data.flatten()
z_data = data_array.flatten()
ax.bar3d(x_data, y_data, np.zeros(len(z_data)), 1, 1, z_data)
plt.show()
Как я могу отображать 3D-гистограммы в python?