How To Create A Persistence Plot
Show older comments
I have quite a large data set that I want to visulaise by overlaying all the traces on one plot, with the traces only using one colour & the opacity/brightness of the resulting trace determined by how many instances of a particular value occur at each point - the only thing I can think to compare it to would be persistence on an old school oscilloscope.
Can someone point me to the correct plot type to achieve this or help me out with some code?
Thanks
5 Comments
dpb
on 9 Aug 2020
Just plot with hold on and selected color to put the points on the screen -- histcounts() will let you bin the observatons by whatever resolution you have to sufficiently have multiple counts; you can set a colormap based on those counts by bin location...
Without trying to make up data...
Adam Danz
on 10 Aug 2020
An example image would help.
It sounds like you have you have to compute the outter boundaries of the data and then use patch or fill to plot the shape of the data.
DrEamonn
on 10 Aug 2020
As far as I know you cannot vary the transparency within a patch. However, you can adjust the color (ie, shades of blue) and then set a constant transparency value.
Here's some background info on controlling the color transitions of a patch by setting the CData property of a patch object. You can set a colormap from light blue to dark blue.
Accepted Answer
More Answers (0)
Categories
Find more on Data Distribution Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



