Looking for a good way to visualize data density

2 views (last 30 days)
I have a matrix A[20000x100] (data output from a Monte Carlo analysis) and a vector t[100], which represents time. I want to plot all 20000 simulations of A as the ordinate versus t as the absicca in an x-y scatter plot format. The values of A at each time step is any combination of 20000 positive real numbers from 0 to 1000 (not necessarily normally distirbuted) and we can assume t =1:1:100 for the purposes of this discussion.
Instead of simply plotting 20000 lines on top of each other, which ends up not being too informative becasue there are too many lines, I want to visualize in such a that the graph is informative about the density of the data at each instance of t. This is akin to plotting a histogram at each t but I prefer that the colormap representing the data density scales with the overall dataset instead of just the data density at each time step. In other words, if deep red represents the highest dentisy, I don't want to necessarily see a the deep red color at each time step. Need to white out parts where there is no A for the full range of y-axis.
Thank you.
  2 Comments
Walter Roberson
Walter Roberson on 5 Feb 2020
There is a density plot function in the file exchange.
Murat Aydin
Murat Aydin on 6 Feb 2020
Thank you. I donwloaded that function, and with some minor mods it will do exactly what I need.

Sign in to comment.

Answers (0)

Categories

Find more on Data Distribution Plots in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!