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
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에 대해 자세히 알아보기

제품

질문:

2011년 11월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by