Question: Plotting Ferrer graph of a plane partition

I'm currently trying to plot the Ferrers graph of a plane partition, i.e. a 3D structure of stacked boxes. My input would be a plane partition pij with the information ( i, j, k ) for each 'stack of boxes' where i, j are the coordinates in the matrix and k is the value of the respective entry. As an example, the following input 3 2 1 1 2 2 1 1 1 should produce a plot that looks like this: Thanks a lot in advance! Cheers Nils
Please Wait...