I have a large time series data(1D floating point array) which represents various events. Similar events have similar phases. However, I don't know the number of events occurred during that time. Is it possible to write a program (preferably in python) to identify the similar phases which represent the same events(may be by coloring them).
Finally I want to plot the time series data with respect to time-stamps with each phase colored differently (based on their events).
Any help is more than appreciated.
Thanks