Looking for a good way to visualize data density

5 次查看(过去 30 天)
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 个评论
Walter Roberson
Walter Roberson 2020-2-5
There is a density plot function in the file exchange.
Murat Aydin
Murat Aydin 2020-2-6
Thank you. I donwloaded that function, and with some minor mods it will do exactly what I need.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Histograms 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by