Change plot properties of tsdata.event object
Show older comments
Hi,
I am wondering if there is a way to change the plot properties of event data from a timeseries object? The reason I ask is that I am currently creating a timeseries objects, finding the turning points in the data (peaks and troughs) and then adding these as events (named either 'peak' or 'trough').
When I plot the timeseries object, it will add all events to the plot as a red filled in circle along the timeseries plot. I would like to change all 'peak' events to one colour and all 'trough' events to another colour but can't seem to find any way to do this.
Any help would be appreciated!
Answers (1)
Vince Emanuele
on 6 Feb 2012
0 votes
One possibility is to make your own subclass of timeseries and modify the behavior of the plot function there.
Categories
Find more on Time Series Events in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!