As noted in the documentation, MATLAB's brush
does not work with errorbar
plots (see section Plot Types You Cannot Brush). For example,
figure;
errorbar((1:10)+2*sin(.3:.3:3),cos(1:1:10)/2);
hold all;
plot(10:-1:1,'o-g');
brush
generates a plot where I can brush data points from the green plot
, but not from the red errorbar
plot:
Update
Ideally I would like to find a way to retroactively make plots with error bars brushable, short of extracting XData and YData and recreating a graph with plot
.
Failing that, is there a function to replace errorbar
which allows this for plots I create in the future?
errorbar
that usesline
instead ofplot
to add errorbars. Contact me via the link in my profile if you want it. – Jonas