# Plotting evolution of probability with time

I have compiled data about the evolution of a function with time and the data looks something like this.

I wanted to plot this data in the form of a density histogram such that every row represents one of the four states and every column represented number the observances of the object in one of the four states at a particular time. The end result should appear something like.

I first tried to use the DensityHistorgram but I was unable to put discrete data into it and the documentation did not mention how I could do so. I would be very grateful if anyone could tell me how to plot such a function.

Note: I apologize for putting the data as an image. If you can plot it for any simple data I could use that forward in my work. So, please feel free to use the simplest of data. I only wish to understand how data can be plotted in this manner.

• tried MatrixPlot? – kglr May 21 at 19:07
• May you paste the data as code instead of an image. – Edmund May 22 at 0:01

You can use MatrixPlot:
data = Sort /@ RandomReal[1, {4, 20}];