Change plot properties of tsdata.event object
显示 更早的评论
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!
回答(1 个)
Vince Emanuele
2012-2-6
0 个投票
One possibility is to make your own subclass of timeseries and modify the behavior of the plot function there.
类别
在 帮助中心 和 File Exchange 中查找有关 Time Series Events 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!