You can try the 3D plot using the bar3d function.
Suppose you have an array A of dimension (25, 10), the value with index (i, j) is A [i] [j]. The following code example can give you a 3D bar chart where the height of each bar is A [i] [j].
from mpl_toolkits.mplot3d import axes3d import matplotlib.pyplot as plt import numpy as np %matplotlib inline np.random.seed(1234) fig = plt.figure() ax1 = fig.add_subplot(111, projection='3d') A = np.random.randint(5, size=(25, 10)) x = np.array([[i] * 10 for i in range(25)]).ravel()
On my pc with random 1234 seed, I get the following plot: 
However, it might be slow to create a graph for your size problem (256, 1024).
shen ke
source share