3D discrete heatmap in matplotlib
New answer: It seems we really want to have a 3D Tetris game here 😉 So here is a way to plot cubes of different color to fill the space given by the arrays (x,y,z). from mpl_toolkits.mplot3d import Axes3D import numpy as np import matplotlib.pyplot as plt import matplotlib.cm import matplotlib.colorbar import matplotlib.colors def cuboid_data(center, … Read more