Can brushing be enabled for timeseries plot?

1 view (last 30 days)
Bill Slack
Bill Slack on 10 Oct 2016
Commented: Bill Slack on 12 Oct 2016
While brushing has remained consistent over the last few releases, the timeseries plot capability now (2016a) draws a datetime plot that refuses to be brushed. In 2014a and earlier, timeseries plot drew a graphic that supported brushing. Has anyone developed a work-around to restore this capability?

Answers (1)

Steven Lord
Steven Lord on 11 Oct 2016
If you're referring to calling plot (or some other graphics functions) with datetime or duration data, I know it is possible to brush those plots in release R2016b, probably due to the fact that the datetime and duration rulers were introduced in release R2016b.
load census
plot(datetime(cdate, 1, 1), pop)
brush on
It doesn't look like that really works in release R2016a, though.
  1 Comment
Bill Slack
Bill Slack on 12 Oct 2016
Hi Steven, thanks for pointing me in the right direction. Clearly, I was hoping for a nice little block of ad-hoc code, but the upgrade has got to be a much more robust alternative.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!