필터 지우기
필터 지우기

Looking for a good way to visualize data density

조회 수: 5 (최근 30일)
Murat Aydin
Murat Aydin 2020년 2월 5일
댓글: Murat Aydin 2020년 2월 6일
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