Looking for a good way to visualize data density

2 vues (au cours des 30 derniers jours)
Murat Aydin
Murat Aydin le 5 Fév 2020
Commenté : Murat Aydin le 6 Fév 2020
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 commentaires
Walter Roberson
Walter Roberson le 5 Fév 2020
There is a density plot function in the file exchange.
Murat Aydin
Murat Aydin le 6 Fév 2020
Thank you. I donwloaded that function, and with some minor mods it will do exactly what I need.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Data Distribution Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by