I write following program in Python to plot from array:
import matplotlib.pyplot as pyplot import numpy p = 5 n = 25 s = numpy.zeros([n,n]) s[0, 0] = 1 for i in range(0, n): for j in range(0, i+1): s[i, j] = i+j pyplot.imshow(s) pyplot.show()
to get following image.
I would like to imitate such plotting style of image (grid type and each mesh has color corresponds to its array value) in Mathematica, too. How to implement this in Mathematica? I found
ListDensityPlot, but it seems not what I want. Anyway, if such function exists, I hope its input is 2D-List(or array).
Apologize that my question is not detailed, since I don't know much about Mathematica. If it's duplicate, please let me know.