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!

Answers (1)

One possibility is to make your own subclass of timeseries and modify the behavior of the plot function there.

Products

Asked:

on 14 Nov 2011

Community Treasure Hunt

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

Start Hunting!